summaryrefslogtreecommitdiff
path: root/common.sh
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2017-01-31 17:25:40 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2017-01-31 17:25:40 -0500
commit8298c897c6a6b6648210fa5feca23e12ef7b8ead (patch)
tree4d22902539bf0432c0d98f318edef69db2075b22 /common.sh
parent3ad0ac33823650b573b1be1577ae6297097dee98 (diff)
Add automatic holo dependencies.
Similar to holo-build.
Diffstat (limited to 'common.sh')
-rw-r--r--common.sh7
1 files changed, 7 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
}