diff options
author | Mattias Andrée <maandree@kth.se> | 2016-06-23 19:49:46 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-06-23 19:49:46 +0200 |
commit | ea6115bb9d50849f32a6a51c0cf8460b20710663 (patch) | |
tree | ed9055fd5bec768d3df08fcdbe81fe2c45f96e4f /solar-python/solar-python.install | |
parent | Update metar (diff) | |
download | aur-packages-ea6115bb9d50849f32a6a51c0cf8460b20710663.tar.gz aur-packages-ea6115bb9d50849f32a6a51c0cf8460b20710663.tar.bz2 aur-packages-ea6115bb9d50849f32a6a51c0cf8460b20710663.tar.xz |
Add solar-python
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'solar-python/solar-python.install')
-rw-r--r-- | solar-python/solar-python.install | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/solar-python/solar-python.install b/solar-python/solar-python.install new file mode 100644 index 0000000..0227091 --- /dev/null +++ b/solar-python/solar-python.install @@ -0,0 +1,20 @@ +_file="solar-python" + +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 +} + |