diff options
author | Timo Teräs <timo.teras@iki.fi> | 2014-12-09 08:58:01 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2014-12-09 08:58:01 +0000 |
commit | 1afca89ede7cacb4e48723cc4721986700602dd8 (patch) | |
tree | e58ba0f18a799eaa12634524e2abac49be74645d | |
parent | 1064600d0a82650668d6e0f01810f4633a2ae2b5 (diff) | |
download | aports-1afca89ede7cacb4e48723cc4721986700602dd8.tar.bz2 aports-1afca89ede7cacb4e48723cc4721986700602dd8.tar.xz |
main/syncthing: fix and enable arm build
-rw-r--r-- | main/syncthing/APKBUILD | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/main/syncthing/APKBUILD b/main/syncthing/APKBUILD index 415c28bd51..988e4b8f4b 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() { |