diff options
author | Aurélien DESBRIÈRES <aurelien@hackers.camp> | 2014-10-08 19:51:44 +0200 |
---|---|---|
committer | Aurélien DESBRIÈRES <aurelien@hackers.camp> | 2014-10-08 19:51:44 +0200 |
commit | 21ddfa1115aa87f61aef66cb1977ef675784e650 (patch) | |
tree | d5b661cd9fd7e3b8a6e9efaf326cbaf07fc6a9c2 /pcr/octave-signal/octave-signal.install | |
parent | 19767b96a2507bc812dbab9b217d2a738f387ca7 (diff) |
Signal processing tools
Diffstat (limited to 'pcr/octave-signal/octave-signal.install')
-rw-r--r-- | pcr/octave-signal/octave-signal.install | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/pcr/octave-signal/octave-signal.install b/pcr/octave-signal/octave-signal.install new file mode 100644 index 000000000..1d5a466a5 --- /dev/null +++ b/pcr/octave-signal/octave-signal.install @@ -0,0 +1,20 @@ +_pack=signal +_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" +} |