File functions.sh.patch of Package build-pkg2appimage

--- functions.sh.orig	2017-12-12 17:12:02.901692941 +0100
+++ functions.sh	2017-12-12 17:13:55.721697553 +0100
@@ -25,6 +25,12 @@
 # Detect system architecture to know which binaries of AppImage tools
 # should be downloaded and used.
 case "$(uname -i)" in
+  aarch64)
+    echo "aarch64 system architecture"
+    SYSTEM_ARCH="aarch64";;
+  armv7l)
+    echo "armv7l system architecture"
+    SYSTEM_ARCH="armv7l";;
   x86_64|amd64)
 #    echo "x86-64 system architecture"
     SYSTEM_ARCH="x86_64";;
@@ -76,7 +82,11 @@
 get_apprun()
 {
   TARGET_ARCH=${ARCH:-$SYSTEM_ARCH}
-  wget -c https://github.com/AppImage/AppImageKit/releases/download/continuous/AppRun-${TARGET_ARCH} -O AppRun
+  if [ -e "$STATIC_FILES/AppRun" ]; then
+    cp -a "$STATIC_FILES/AppRun" AppRun
+  else
+    wget -c https://github.com/probonopd/AppImageKit/releases/download/6/AppRun_6-x86_64 -O AppRun # 64-bit
+  fi
   chmod a+x AppRun
 }
 
openSUSE Build Service is sponsored by