summarylogtreecommitdiffstats
path: root/octave-cgi.install
diff options
context:
space:
mode:
authorwangjiezhe2015-10-27 09:35:22 +0800
committerwangjiezhe2015-10-27 09:37:50 +0800
commita9e0190943609618fbcb8fc99c7f258c16ad1c3d (patch)
treece6eef107b82e7dc06620a3cd86a2f330e7901ac /octave-cgi.install
downloadaur-a9e0190943609618fbcb8fc99c7f258c16ad1c3d.tar.gz
Initial commit
Diffstat (limited to 'octave-cgi.install')
-rw-r--r--octave-cgi.install13
1 files changed, 13 insertions, 0 deletions
diff --git a/octave-cgi.install b/octave-cgi.install
new file mode 100644
index 000000000000..4a23bd1a1341
--- /dev/null
+++ b/octave-cgi.install
@@ -0,0 +1,13 @@
+_pack=cgi
+
+post_install() {
+ octave-cli -q -f --eval "pkg rebuild -global $_pack"
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ octave-cli -q -f --eval "pkg rebuild -global"
+}