summarylogtreecommitdiffstats
path: root/octave-nnet.install
diff options
context:
space:
mode:
authorDenis Kasak2015-06-08 22:43:15 +0200
committerDenis Kasak2015-06-08 22:43:15 +0200
commit4c239c6dae8e0cf244aaebdd237b78c116daf1fa (patch)
tree57e7ce701519b0bfabf0e5892fcf55f0322662ec /octave-nnet.install
downloadaur-4c239c6dae8e0cf244aaebdd237b78c116daf1fa.tar.gz
Initial import
Diffstat (limited to 'octave-nnet.install')
-rw-r--r--octave-nnet.install17
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
+}