updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / octave-mechanics / octave-mechanics.install
blobc63b9163d2ce191b1b2658a81392373ebb3a55de
1 _pack=mechanics
2 _prefix=/usr/share/octave/packages
3 _libdir=/usr/lib/octave/packages
5 ## arg 1:  the new package version
6 post_install() {
7   octave -q -f --eval "pkg prefix $prefix $libdir; pkg install -global /usr/share/octave/$_pack.tar.gz"
10 ## arg 1:  the new package version
11 ## arg 2:  the old package version
12 post_upgrade() {
13   post_remove
14   post_install
17 ## arg 1:  the old package version
18 post_remove() {
19   octave -q -f --eval "pkg prefix $prefix $libdir; pkg uninstall $_pack"