diff options
author | wangjiezhe | 2015-10-28 10:53:28 +0800 |
---|---|---|
committer | wangjiezhe | 2015-10-28 10:53:28 +0800 |
commit | 382674d838c19a49815f7780771c3731c38bfe9a (patch) | |
tree | 22674bb0dc3d09a3faac73b378628f566a301f44 /octave-octclip.install | |
download | aur-382674d838c19a49815f7780771c3731c38bfe9a.tar.gz |
Initial commit
Diffstat (limited to 'octave-octclip.install')
-rw-r--r-- | octave-octclip.install | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/octave-octclip.install b/octave-octclip.install new file mode 100644 index 000000000000..d1165a98b630 --- /dev/null +++ b/octave-octclip.install @@ -0,0 +1,17 @@ +_pack=octclip + +_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" +} |