summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/syncthing/APKBUILD8
1 files changed, 6 insertions, 2 deletions
diff --git a/main/syncthing/APKBUILD b/main/syncthing/APKBUILD
index 415c28bd5..988e4b8f4 100644
--- a/main/syncthing/APKBUILD
+++ b/main/syncthing/APKBUILD
@@ -5,7 +5,7 @@ pkgver=0.10.9
pkgrel=1
pkgdesc="Open Source Continuous File Synchronization"
url="http://syncthing.net/"
-arch="x86 x86_64"
+arch="all"
license="MIT"
pkgusers="$pkgname"
pkggroups="$pkgname"
@@ -35,9 +35,13 @@ prepare() {
}
build() {
+ local _arch=""
cd "$_builddir"/$pkgname
export GOPATH="$srcdir"
- go run build.go -no-upgrade -version=v$pkgver
+ case "$CTARGET" in
+ arm*) _arch="-goarch armv6";;
+ esac
+ go run build.go -no-upgrade -version=v$pkgver $_arch
}
package() {