summaryrefslogtreecommitdiff
path: root/pcr/octave-control/octave-control.install
diff options
context:
space:
mode:
authorAurélien DESBRIÈRES <aurelien@hackers.camp>2014-10-08 17:54:27 +0200
committerAurélien DESBRIÈRES <aurelien@hackers.camp>2014-10-08 17:54:27 +0200
commit19767b96a2507bc812dbab9b217d2a738f387ca7 (patch)
treefca11b8e732aaa7cd7cdfdce6c32458f5d0325fe /pcr/octave-control/octave-control.install
parentf85b4cf31b0e3947f29ce1e9b9140dc89e1e706d (diff)
downloadabslibre-19767b96a2507bc812dbab9b217d2a738f387ca7.tar.gz
abslibre-19767b96a2507bc812dbab9b217d2a738f387ca7.tar.bz2
abslibre-19767b96a2507bc812dbab9b217d2a738f387ca7.zip
octave-control Computer-Aided Control System Design (CACSD) Tools for GNU Octave,
ctabe, based on the proven SLICOT Library
Diffstat (limited to 'pcr/octave-control/octave-control.install')
-rw-r--r--pcr/octave-control/octave-control.install20
1 files changed, 20 insertions, 0 deletions
diff --git a/pcr/octave-control/octave-control.install b/pcr/octave-control/octave-control.install
new file mode 100644
index 000000000..2ddb42de9
--- /dev/null
+++ b/pcr/octave-control/octave-control.install
@@ -0,0 +1,20 @@
+_pack=control
+_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"
+}