diff options
Diffstat (limited to 'pcr/octave-communications/octave-communications.install')
-rw-r--r-- | pcr/octave-communications/octave-communications.install | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/pcr/octave-communications/octave-communications.install b/pcr/octave-communications/octave-communications.install index 77b123c4e..dd537e7ef 100644 --- a/pcr/octave-communications/octave-communications.install +++ b/pcr/octave-communications/octave-communications.install @@ -1,20 +1,13 @@ _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" + octave -q -f --eval "pkg rebuild -global $_pack" } -## arg 1: the new package version -## arg 2: the old package version post_upgrade() { - post_remove - post_install + post_install } -## arg 1: the old package version post_remove() { - octave -q -f --eval "pkg prefix $prefix $libdir; pkg uninstall $_pack; pkg rebuild -global" + octave -q -f --eval "pkg rebuild -global" } |