summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD37
1 files changed, 28 insertions, 9 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 36b30b17843..30d9f75373b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
pkgname=nomad
-pkgver=0.8.5
+pkgver=0.8.6
pkgrel=1
pkgdesc="A Distributed, Highly Available, Datacenter-Aware Scheduler"
arch=('i686' 'x86_64')
@@ -17,22 +17,43 @@ optdepends=(
backup=(etc/nomad/{server,client}.conf)
source=(https://github.com/hashicorp/nomad/archive/v$pkgver/$pkgname-$pkgver.tar.gz
nomad-{server,client}.{service,conf}
- lxc-version-check.patch)
-sha256sums=('94000da809fd077066c2348591db9ef2f71d070f4e1cb0f8fb4440644dec8d55'
+ lxc-version-check.patch
+ golang-crypto.patch)
+sha256sums=('e69b447dcc2caeb3d5ecf904cf3c8f327a5185a84442ee4241a796d89f96e143'
'52b0a22c3c0c72c642a8728cb48bd8797f4f6a12990e11bbb2342edcc2a9a206'
'da475bc4aa3b1493eb62f09e7f99dcc171e8ce6d74df3da30514cfdfe72a5714'
'4c8fb7c18c67ca20e3ee07f25cf2f0c82b66c4c173275ae8d643c91cce3c0ceb'
'ba80943ac42e617627c7e14be402078199ddba8d7e4276d67f0c9f6e6842d4a8'
- '740cf838f4489b00fab8329c81ba21b1fae02e584d8fac2b5f88eeec76e4e62f')
+ '740cf838f4489b00fab8329c81ba21b1fae02e584d8fac2b5f88eeec76e4e62f'
+ '75583a195b43d7345449bbac60359bf54661ccbd699386a6e59bb483c6054338')
prepare() {
mkdir -p src/github.com/hashicorp
cd src/github.com/hashicorp
rm -rf nomad
mv ../../../$pkgname-$pkgver nomad
+ cd nomad
- cd nomad/vendor/gopkg.in/lxc/go-lxc.v2
+ 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 bootstrap
+ mkdir -p bin
+
+ pushd vendor/gopkg.in/lxc/go-lxc.v2
patch -p1 -i "$srcdir"/lxc-version-check.patch
+ popd
+
+ pushd vendor/golang.org/x/crypto
+ patch -p1 -i "$srcdir"/golang-crypto.patch
}
build() {
@@ -43,14 +64,12 @@ build() {
if [ $CARCH == "x86_64" ]; then
export GOARCH=amd64
else
- export GPARCH=386
+ export GOARCH=386
fi
- make bootstrap
- mkdir -p bin
CGO_ENABLED=1 \
go build -ldflags '-X main.GitCommit=""' \
- -tags lxc \
+ -tags "ui lxc" \
-o bin/nomad
}