summaryrefslogtreecommitdiff
path: root/config-base-pacman.PKGBUILD
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2017-02-01 08:25:11 +0000
committerLuke Shumaker <lukeshu@sbcglobal.net>2017-02-01 08:25:11 +0000
commit6d488c1513675c5fc009986cba1336c42b4f58bf (patch)
tree88ceae93833d78daab7f14225e25d2f39f1c56ba /config-base-pacman.PKGBUILD
parenta0782f73c62f216992de2d60620711dded9046cb (diff)
update things
Diffstat (limited to 'config-base-pacman.PKGBUILD')
-rw-r--r--config-base-pacman.PKGBUILD23
1 files changed, 23 insertions, 0 deletions
diff --git a/config-base-pacman.PKGBUILD b/config-base-pacman.PKGBUILD
new file mode 100644
index 0000000..a815d45
--- /dev/null
+++ b/config-base-pacman.PKGBUILD
@@ -0,0 +1,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
+}