summarylogtreecommitdiffstats
path: root/octave-odepkg.install
diff options
context:
space:
mode:
authorJoey Dumont2015-06-11 16:03:25 -0400
committerJoey Dumont2015-06-11 16:03:25 -0400
commit45cf79aeb142fddb8a533f28dcf3c327fd65bf50 (patch)
tree86c6ba9865d9437bfadda9c89fef25c769288075 /octave-odepkg.install
downloadaur-octave-odepkg.tar.gz
Pushed package to AUR4.
Diffstat (limited to 'octave-odepkg.install')
-rw-r--r--octave-odepkg.install14
1 files changed, 14 insertions, 0 deletions
diff --git a/octave-odepkg.install b/octave-odepkg.install
new file mode 100644
index 000000000000..a58a9d5707a4
--- /dev/null
+++ b/octave-odepkg.install
@@ -0,0 +1,14 @@
+pkg=odepkg
+
+post_install() {
+ echo "pkg prefix /usr/share/octave/packages /usr/lib /octave/packages; pkg install -global /usr/share/octave/$pkg.tar.gz" | octave --silent
+}
+
+post_upgrade() {
+ post_remove
+ post_install
+}
+
+post_remove() {
+ echo "pkg prefix /usr/share/octave/packages /usr /lib/octave/packages; pkg uninstall $pkg" | octave --silent
+} \ No newline at end of file