diff options
author | Mattias Andrée | 2015-12-21 12:40:58 +0100 |
---|---|---|
committer | Mattias Andrée | 2015-12-21 12:40:58 +0100 |
commit | 612cfeebd5c40a30326dc738bd415605842a9abc (patch) | |
tree | 0afed489c764a87ea80578e574c28523746b6bab /autohaltd.install | |
download | aur-612cfeebd5c40a30326dc738bd415605842a9abc.tar.gz |
Initial import, version 0.1
Diffstat (limited to 'autohaltd.install')
-rw-r--r-- | autohaltd.install | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/autohaltd.install b/autohaltd.install new file mode 100644 index 000000000000..32380a988117 --- /dev/null +++ b/autohaltd.install @@ -0,0 +1,20 @@ +_file="autohaltd" + +infodir="usr/share/info" +file="${_file}.info" + + +post_install() { + [[ -x "usr/bin/install-info" ]] || return 0 + install-info -- "${infodir}/${file}" "${infodir}/dir" 2> /dev/null +} + +post_upgrade() { + post_install "$1" +} + +pre_remove() { + [[ -x "usr/bin/install-info" ]] || return 0 + install-info --delete -- "${infodir}/${file}" "${infodir}/dir" 2> /dev/null +} + |