summaryrefslogtreecommitdiff
path: root/community/ginac/ginac.install
diff options
context:
space:
mode:
Diffstat (limited to 'community/ginac/ginac.install')
-rw-r--r--community/ginac/ginac.install20
1 files changed, 20 insertions, 0 deletions
diff --git a/community/ginac/ginac.install b/community/ginac/ginac.install
new file mode 100644
index 000000000..3de7910d0
--- /dev/null
+++ b/community/ginac/ginac.install
@@ -0,0 +1,20 @@
+infodir=/usr/share/info
+filelist=(ginac.info)
+
+post_install() {
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${filelist[@]}; do
+ usr/bin/install-info $infodir/$file $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
+ usr/bin/install-info --delete $infodir/$file $infodir/dir 2> /dev/null
+ done
+}