aboutsummaryrefslogtreecommitdiffstats
path: root/arch-system/PKGBUILD
blob: b8cbbfbe1c64ae7637652e6a21f94646077607bc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Maintainer: Tharre <tharre3@gmail.com>

pkgbase=arch-system
pkgname=('base-system' 'backup-system' 'xps13')
pkgver=$(printf '%(%Y.%m.%d)T')
pkgrel=1
pkgdesc="Arch Linux system configuration"
arch=("any")
url=""
license=('custom')
source=('etc-pacman.conf' 'etc-locale.conf' 'etc-locale.gen' 'etc-vconsole.conf'
        'mirrorupgrade.hook' 'sudoers-wheel' 'etc-nsswitch.conf'
        'etc-sysctl.conf' '90-modprobe-d.hook' 'etc-yubikey.rules'

        'sudoers-borgbackup' 'backup-sudo' 'borg-backup.service'
        'borg-backup.timer' 'borgbackup'

        'intel-undervolt.conf' 'xps13-i915.conf')
sha256sums=('b3b540ac0dd68831d813e34dd8465cd00e8ba6a56fa6e5a162dc5ef469ec584c'
            '70b74b741f3b1b58eeb97d8d5b9e6148a35ff8dced47cf4a231c1d0420aff5eb'
            'b11ab0ea3d5c300afa0fb877d1f367993425a3fda0382f50f0e122625154f566'
            '978271534da06356159eb24c0cee32b0024029d41df836ab76a964dfd7d36447'
            '79ba5fdf0c69686ea0f2770c9b49b58ca26ebcce15e346d5bd56a442e684896e'
            '62c1a085f7a9d1c5d57b40516fea5d7e8dfb3593d5c0a713cd571c8e5bae2584'
            '9c1648e1e9219efbe1e4098952f7595f1ebb0eca629d2c8957079186c56d1822'
            '67b6ebe8a8e52cd60266f418b7af77c2ef0b2b6596de494ec5c37824f355a3ae'
            '7467bb40e7d404ed249b34a0e410b8d452ebc4b90588d7e210bfa47011b5981d'
            'dd84877b7f6f4330da489fa33f843c9a7c862562a3d78dc2feea5116ac846a79'
            '483a7d9350653c2cf22f36f67f1a83cc5c95232dfc10642a20d76e3c32c9e2e3'
            '0fd2628f2311fbbc4dae6f3018b27976ff20f8d70175bc3a587696350295028c'
            '42050ba722df1cd606288e82054e131dac99bf10506f4c8d52eb9bfc0a078d89'
            'e1bf3dc5978a7641f86975b7ee770a6914b30a8e4b7e3be2f1b07eaa7098591d'
            '35e501f1114f635a4c55ccf2c9debcdff5579666dcf6d11e695be861ebd0a436'
            '895305808aa91be3294dbaeb7840e38497fb8dbcd6309cc95c417e1a0379e596'
            '5613c98d32e513a973e8a0e250ab0b267882a73615f507b6208d4a5f21487fe6')

package_base-system() {
    depends=('gvim' 'zsh' 'tmux' 'htop' 'git' 'reflector' 'sudo' 'avahi'
             'nss-mdns' 'ttf-dejavu' 'chromium' 'ttf-liberation')
    install="$pkgname.install"

    install -Dm0644 etc-pacman.conf "$pkgdir"/etc/pacman.conf
    install -Dm0644 etc-locale.conf "$pkgdir"/etc/locale.conf
    install -Dm0644 etc-locale.gen "$pkgdir"/etc/locale.gen
    install -Dm0644 etc-vconsole.conf "$pkgdir"/etc/vconsole.conf
    install -Dm0644 mirrorupgrade.hook -t "$pkgdir"/usr/share/libalpm/hooks/
    install -dm0750 "$pkgdir"/etc/sudoers.d/
    install -Dm0644 sudoers-wheel "$pkgdir"/etc/sudoers.d/00_wheel
    install -Dm0644 etc-nsswitch.conf "$pkgdir"/etc/nsswitch.conf
    install -Dm0644 etc-sysctl.conf "$pkgdir"/usr/lib/sysctl.d/99-sysctl.conf
    install -Dm0644 90-modprobe-d.hook -t "$pkgdir"/usr/share/libalpm/hooks/
    install -Dm0644 etc-yubikey.rules -t "$pkgdir"/usr/lib/udev/rules.d

    ln -s /usr/share/zoneinfo/Europe/Berlin "$pkgdir"/etc/localtime
}

package_backup-system() {
    depends=('libnotify' 'bash' 'borg' 'sudo')

    install -dm0750 "$pkgdir"/etc/sudoers.d/
    install -Dm0644 sudoers-borgbackup "$pkgdir"/etc/sudoers.d/70_borgbackup
    install -Dm0644 borg-backup.service -t "$pkgdir"/usr/lib/systemd/user/
    install -Dm0644 borg-backup.timer -t "$pkgdir"/usr/lib/systemd/user/
    install -Dm0755 borgbackup backup-sudo -t "$pkgdir"/usr/bin/
}

package_xps13() {
    depends=('mesa' 'lib32-mesa' 'vulkan-intel' 'libva-intel-driver'
             'lib32-libva-intel-driver' 'libvdpau-va-gl' 'intel-undervolt')

    install -Dm0644 xps13-i915.conf "$pkgdir"/etc/modprobe.d/i915.conf
    install -Dm0644 intel-undervolt.conf -t "$pkgdir"/etc/
}

# TODO: docker, vagrant, devtools