aboutsummaryrefslogtreecommitdiffstats
path: root/solar-python/solar-python.install
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-06-23 19:49:46 +0200
committerMattias Andrée <maandree@kth.se>2016-06-23 19:49:46 +0200
commitea6115bb9d50849f32a6a51c0cf8460b20710663 (patch)
treeed9055fd5bec768d3df08fcdbe81fe2c45f96e4f /solar-python/solar-python.install
parentUpdate metar (diff)
downloadaur-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.install20
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
+}
+