diff options
author | Esteban Carnevale <alfplayer@mailoo.org> | 2014-10-11 21:32:27 -0300 |
---|---|---|
committer | Esteban Carnevale <alfplayer@mailoo.org> | 2014-10-11 21:32:27 -0300 |
commit | 73878e9f6a2b86ebf66cf87ec145dc309c8520c4 (patch) | |
tree | add2354a374b3acde8a673f9250c3ff8d72d86dd /pcr/octave-general/octave-general.install | |
parent | d2556ce4d528b6a62d31b9f28cd37678f565f956 (diff) | |
parent | 4e75bcf04fa2ee23cbdc320bdf04af821616a6ee (diff) |
Merge branch 'master' of git://projects.parabola.nu/abslibre
Diffstat (limited to 'pcr/octave-general/octave-general.install')
-rw-r--r-- | pcr/octave-general/octave-general.install | 20 |
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" +} |