diff options
author | Aurélien DESBRIÈRES <aurelien@hackers.camp> | 2014-10-08 20:52:46 +0200 |
---|---|---|
committer | Aurélien DESBRIÈRES <aurelien@hackers.camp> | 2014-10-08 20:52:46 +0200 |
commit | 93f74bc69ff4e26d7a167db715c5baa508ada89e (patch) | |
tree | 805a226890739722f7a8b28581ae930d3b39013f /pcr/octave-communications/octave-communications.install | |
parent | fa5921422d1d79e82c414ca9ba908d87340af8f3 (diff) | |
download | abslibre-93f74bc69ff4e26d7a167db715c5baa508ada89e.tar.gz abslibre-93f74bc69ff4e26d7a167db715c5baa508ada89e.tar.bz2 abslibre-93f74bc69ff4e26d7a167db715c5baa508ada89e.zip |
Digital Communications
Diffstat (limited to 'pcr/octave-communications/octave-communications.install')
-rw-r--r-- | pcr/octave-communications/octave-communications.install | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/pcr/octave-communications/octave-communications.install b/pcr/octave-communications/octave-communications.install new file mode 100644 index 000000000..77b123c4e --- /dev/null +++ b/pcr/octave-communications/octave-communications.install @@ -0,0 +1,20 @@ +_pack=communications +_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" +} |