summaryrefslogtreecommitdiff
path: root/pcr/octave-general/octave-general.install
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-10-08 18:18:58 -0200
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-10-08 18:18:58 -0200
commit58c74b2b003f29da380ba81dd5462b58c01582d6 (patch)
tree290ebb83d306cd9d47ea5af7a925350b06ab39f4 /pcr/octave-general/octave-general.install
parent77e69ee75cf260af0ade12c13e9f3b164b49d920 (diff)
parent93f74bc69ff4e26d7a167db715c5baa508ada89e (diff)
downloadabslibre-58c74b2b003f29da380ba81dd5462b58c01582d6.tar.gz
abslibre-58c74b2b003f29da380ba81dd5462b58c01582d6.tar.bz2
abslibre-58c74b2b003f29da380ba81dd5462b58c01582d6.zip
Merge branch 'master' of ssh://projects.parabola.nu/~git/abslibre
Diffstat (limited to 'pcr/octave-general/octave-general.install')
-rw-r--r--pcr/octave-general/octave-general.install20
1 files changed, 20 insertions, 0 deletions
diff --git a/pcr/octave-general/octave-general.install b/pcr/octave-general/octave-general.install
new file mode 100644
index 000000000..1a0a2df71
--- /dev/null
+++ b/pcr/octave-general/octave-general.install
@@ -0,0 +1,20 @@
+_pack=general
+_prefix=/usr/share/octave/packages
+_libdir=/usr/lib/octave/packages
+
+## arg 1: the new package version
+post_install() {
+ octave -q -f --eval "pkg prefix $prefix $libdir; pkg install -verbose -global /usr/share/octave/$_pack.tar.gz"
+}
+
+## arg 1: the new package version
+## arg 2: the old package version
+post_upgrade() {
+ post_remove
+ post_install
+}
+
+## arg 1: the old package version
+post_remove() {
+ octave -q -f --eval "pkg prefix $prefix $libdir; pkg uninstall $_pack; pkg rebuild -global"
+}