summaryrefslogtreecommitdiff
path: root/config-mgmt-pacman.PKGBUILD
blob: a815d453770bddca533ac6e73986a66637347c5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
. ${BUILDFILE%/*}/common.sh
pkgver=20170131

depends=(pacman)

package() {
preamble
# #### pacman

# In order for configuration sets to modularly adjust the pacman
# configuration, we patch `/etc/pacman.conf` to include
# `/etc/pacman.d/*.conf`.
add-file -m755 usr/share/holo/files/10-"$pkgname"/etc/pacman.conf.holoscript <<EOF
#!/bin/sh
{
	grep -vxF 'Include = /etc/pacman.d/*.conf'
	echo
	echo 'Include = /etc/pacman.d/*.conf'
} | cat -s
EOF

postamble
}