diff options
-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 +} |