summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common.sh7
-rw-r--r--holo.install13
2 files changed, 20 insertions, 0 deletions
diff --git a/common.sh b/common.sh
index 97da4a3..53c2558 100644
--- a/common.sh
+++ b/common.sh
@@ -56,4 +56,11 @@ preamble() {
postamble() {
install -Dm644 "$BUILDFILE" -t "usr/share/doc/config"
backup=($(find "$pkgdir" -type f -printf '%P\n'))
+ local d
+ for d in "$pkgdir"/usr/share/holo/*; do
+ if [[ -d "$d" ]]; then
+ depends+=("holo-${d##*/}")
+ install=holo.install
+ fi
+ done
}
diff --git a/holo.install b/holo.install
new file mode 100644
index 0000000..02d3ed8
--- /dev/null
+++ b/holo.install
@@ -0,0 +1,13 @@
+#!/hint/sh
+
+post_install() {
+ holo apply
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ holo apply
+}