summarylogtreecommitdiffstats
path: root/octave-struct.install
diff options
context:
space:
mode:
authorClemens Buchacher2015-06-10 09:48:57 +0200
committerClemens Buchacher2015-06-10 10:03:08 +0200
commit4fea3710be405441b02fbf7b2213b340fb783492 (patch)
tree3d87c06bbdd9d41b76809dc6cadd932975da4dbd /octave-struct.install
downloadaur-4fea3710be405441b02fbf7b2213b340fb783492.tar.gz
struct 1.0.11
Diffstat (limited to 'octave-struct.install')
-rw-r--r--octave-struct.install13
1 files changed, 13 insertions, 0 deletions
diff --git a/octave-struct.install b/octave-struct.install
new file mode 100644
index 000000000000..41e16f01db18
--- /dev/null
+++ b/octave-struct.install
@@ -0,0 +1,13 @@
+_pack=struct
+
+post_install() {
+ octave -q -f --eval "pkg rebuild -global $_pack"
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ octave -q -f --eval "pkg rebuild -global"
+}