summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD14
2 files changed, 4 insertions, 13 deletions
diff --git a/.SRCINFO b/.SRCINFO
index d1a18b62aa4..c7851aee966 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -4,6 +4,9 @@ pkgbase = nomad
pkgrel = 1
url = https://nomadproject.io/
arch = x86_64
+ arch = aarch64
+ arch = armv7h
+ arch = armv7l
license = MPL2
makedepends = go
makedepends = git
diff --git a/PKGBUILD b/PKGBUILD
index cecc9fe35f0..e0b45b876cf 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@ pkgname=nomad
pkgver=0.10.2
pkgrel=1
pkgdesc="A Distributed, Highly Available, Datacenter-Aware Scheduler"
-arch=('x86_64')
+arch=('x86_64' 'aarch64' 'armv7h' 'armv7l')
url="https://nomadproject.io/"
license=('MPL2')
#depends=('ethtool' 'lxc')
@@ -32,12 +32,6 @@ prepare() {
export GOPATH="$srcdir"
export PATH="$GOPATH/bin:$PATH"
- if [ $CARCH == "x86_64" ]; then
- export GOARCH=amd64
- else
- export GOARCH=386
- fi
-
go get golang.org/x/sys/cpu
make deps lint-deps
@@ -49,12 +43,6 @@ build() {
export GOPATH="$srcdir"
export PATH="$GOPATH/bin:$PATH"
- if [ $CARCH == "x86_64" ]; then
- export GOARCH=amd64
- else
- export GOARCH=386
- fi
-
CGO_ENABLED=1 \
go build -ldflags '-X main.GitCommit=""' \
-tags "ui lxc" \