diff options
author | Joakim Reinert | 2017-01-14 15:58:06 +0100 |
---|---|---|
committer | Joakim Reinert | 2017-01-14 15:58:06 +0100 |
commit | dbf546109d515d44b37a38be57a240e2aaa27555 (patch) | |
tree | 19689344f8f93f2492abf9dd9f8bdd47a1033dd6 | |
parent | 8d2bebb7256d7bb8b3768ca09755598f4beb463c (diff) | |
download | aur-dbf546109d515d44b37a38be57a240e2aaa27555.tar.gz |
compile/remove firmware on post_install,post_upgrade/pre_remove
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | axoloti-runtime-git.install | 24 |
2 files changed, 22 insertions, 4 deletions
@@ -1,5 +1,5 @@ # Generated by mksrcinfo v8 -# Sat Jan 14 14:53:11 UTC 2017 +# Sat Jan 14 14:57:58 UTC 2017 pkgbase = axoloti-runtime-git pkgdesc = runtime for axoloti pkgver = 1.0.11.r61.g6a05b1c2 diff --git a/axoloti-runtime-git.install b/axoloti-runtime-git.install index 29d86ac49e40..d85de5f048af 100644 --- a/axoloti-runtime-git.install +++ b/axoloti-runtime-git.install @@ -1,3 +1,21 @@ -echo '##### compiling firmware... #####' -cd /opt/axoloti-runtime/platform_linux -BUILDDIR=/opt/axoloti-runtime/firmware/build ./compile_firmware.sh +compile_firmware() { + echo '##### compiling firmware... #####' + cd /opt/axoloti-runtime/platform_linux + BUILDDIR=/opt/axoloti-runtime/firmware/build ./compile_firmware.sh +} + +remove_firmware() { + rm -rf /opt/axoloti-runtime/firmware/build +} + +post_install() { + compile_firmware +} + +post_upgrade() { + compile_firmware +} + +pre_remove() { + remove_firmware +} |