diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2017-01-31 17:25:40 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2017-01-31 17:25:40 -0500 |
commit | 8298c897c6a6b6648210fa5feca23e12ef7b8ead (patch) | |
tree | 4d22902539bf0432c0d98f318edef69db2075b22 | |
parent | 3ad0ac33823650b573b1be1577ae6297097dee98 (diff) |
Add automatic holo dependencies.
Similar to holo-build.
-rw-r--r-- | common.sh | 7 | ||||
-rw-r--r-- | holo.install | 13 |
2 files changed, 20 insertions, 0 deletions
@@ -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 +} |