diff options
author | Denis Kasak | 2015-06-08 22:43:15 +0200 |
---|---|---|
committer | Denis Kasak | 2015-06-08 22:43:15 +0200 |
commit | 4c239c6dae8e0cf244aaebdd237b78c116daf1fa (patch) | |
tree | 57e7ce701519b0bfabf0e5892fcf55f0322662ec /octave-nnet.install | |
download | aur-4c239c6dae8e0cf244aaebdd237b78c116daf1fa.tar.gz |
Initial import
Diffstat (limited to 'octave-nnet.install')
-rw-r--r-- | octave-nnet.install | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/octave-nnet.install b/octave-nnet.install new file mode 100644 index 000000000000..22324bf0d319 --- /dev/null +++ b/octave-nnet.install @@ -0,0 +1,17 @@ +pkg=nnet +## arg 1: the new package version +post_install() { + echo "pkg prefix /usr/share/octave/packages /usr/lib/octave/packages; pkg install -global /usr/share/octave/$pkg.tar.gz" | octave --silent +} + +## 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() { + echo "pkg prefix /usr/share/octave/packages /usr/lib/octave/packages; pkg uninstall $pkg" | octave --silent +} |