summarylogtreecommitdiffstats
path: root/octave-dicom.install
diff options
context:
space:
mode:
authorwangjiezhe2017-02-26 21:23:44 +0800
committerwangjiezhe2017-02-26 21:27:28 +0800
commit49414161e2affa3ce204cd4e8afc9c40ee352401 (patch)
tree76d0c80da244b3bad40aa62797be84342ed1ab4a /octave-dicom.install
downloadaur-49414161e2affa3ce204cd4e8afc9c40ee352401.tar.gz
Initial commit
Diffstat (limited to 'octave-dicom.install')
-rw-r--r--octave-dicom.install17
1 files changed, 17 insertions, 0 deletions
diff --git a/octave-dicom.install b/octave-dicom.install
new file mode 100644
index 000000000000..f830fa941248
--- /dev/null
+++ b/octave-dicom.install
@@ -0,0 +1,17 @@
+_pack=dicom
+
+_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"
+}