summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoakim Reinert2017-01-14 15:58:06 +0100
committerJoakim Reinert2017-01-14 15:58:06 +0100
commitdbf546109d515d44b37a38be57a240e2aaa27555 (patch)
tree19689344f8f93f2492abf9dd9f8bdd47a1033dd6
parent8d2bebb7256d7bb8b3768ca09755598f4beb463c (diff)
downloadaur-dbf546109d515d44b37a38be57a240e2aaa27555.tar.gz
compile/remove firmware on post_install,post_upgrade/pre_remove
-rw-r--r--.SRCINFO2
-rw-r--r--axoloti-runtime-git.install24
2 files changed, 22 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index af81913dd86..dfca9916bd4 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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 29d86ac49e4..d85de5f048a 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
+}