diff options
author | DestructiveReasoning | 2015-06-14 21:06:46 +0000 |
---|---|---|
committer | DestructiveReasoning | 2015-06-14 21:06:46 +0000 |
commit | cdce8829d0acbc0571acab442f8e74cf95f2744f (patch) | |
tree | f81ac53c2b20c1ea84b177f914dd210f1be4f659 /proto-info.install | |
download | aur-cdce8829d0acbc0571acab442f8e74cf95f2744f.tar.gz |
Initial upload to AUR4
Diffstat (limited to 'proto-info.install')
-rw-r--r-- | proto-info.install | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/proto-info.install b/proto-info.install new file mode 100644 index 000000000000..617652fdcc72 --- /dev/null +++ b/proto-info.install @@ -0,0 +1,22 @@ +infodir=usr/share/info +filelist=(foo.info bar) + +post_install() { + [[ -x usr/bin/install-info ]] || return 0 + for file in "${filelist[@]}"; do + install-info "$infodir/$file.gz" "$infodir/dir" 2> /dev/null + done +} + +post_upgrade() { + post_install "$1" +} + +pre_remove() { + [[ -x usr/bin/install-info ]] || return 0 + for file in "${filelist[@]}"; do + install-info --delete "$infodir/$file.gz" "$infodir/dir" 2> /dev/null + done +} + +# vim:set ts=2 sw=2 et: |