summarylogtreecommitdiffstats
path: root/octave-zeromq.install
diff options
context:
space:
mode:
authorwangjiezhe2016-03-10 10:00:52 +0800
committerwangjiezhe2016-03-10 10:07:47 +0800
commit2cd9480e2c05f8955f088f8c4fe6517f7065c7ec (patch)
treeb0a3e16686ec8547a6725669401513b5d59635bc /octave-zeromq.install
downloadaur-2cd9480e2c05f8955f088f8c4fe6517f7065c7ec.tar.gz
Initial commit
Diffstat (limited to 'octave-zeromq.install')
-rw-r--r--octave-zeromq.install17
1 files changed, 17 insertions, 0 deletions
diff --git a/octave-zeromq.install b/octave-zeromq.install
new file mode 100644
index 000000000000..9d1df49ab6ed
--- /dev/null
+++ b/octave-zeromq.install
@@ -0,0 +1,17 @@
+_pack=zeromq
+
+_octave_run() {
+ octave --no-history --no-init-file --no-window-system -q -f --eval "$*"
+}
+
+post_install() {
+ _octave_run "pkg rebuild -global $_pack"
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ _octave_run "pkg rebuild -global"
+}