summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO9
-rw-r--r--PKGBUILD37
2 files changed, 33 insertions, 13 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 12d52760696..04c8cdd0090 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,15 +1,14 @@
# Generated by mksrcinfo v8
-# Mon May 2 09:47:04 UTC 2016
+# Mon Jul 11 08:25:23 UTC 2016
pkgbase = nomad
pkgdesc = A Distributed, Highly Available, Datacenter-Aware Scheduler
- pkgver = 0.3.2
+ pkgver = 0.4.0
pkgrel = 1
url = https://www.nomadproject.io/
arch = i686
arch = x86_64
license = MPL
makedepends = go
- makedepends = godep
makedepends = git
depends = ethtool
optdepends = docker
@@ -17,12 +16,12 @@ pkgbase = nomad
optdepends = java-runtime-headless
backup = etc/nomad/server.conf
backup = etc/nomad/client.conf
- source = https://github.com/hashicorp/nomad/archive/v0.3.2/nomad-0.3.2.tar.gz
+ source = https://github.com/hashicorp/nomad/archive/v0.4.0/nomad-0.4.0.tar.gz
source = nomad-server.service
source = nomad-server.conf
source = nomad-client.service
source = nomad-client.conf
- sha256sums = 3e6a54e98cc243a3ef3893442c84e9b88415aac02e82779c12fbcba9a4457d9e
+ sha256sums = b9098781812b93a77ffdfadecd0d3fc8fd5f73dce4b48cd76495b0124bd8cfe5
sha256sums = 52b0a22c3c0c72c642a8728cb48bd8797f4f6a12990e11bbb2342edcc2a9a206
sha256sums = da475bc4aa3b1493eb62f09e7f99dcc171e8ce6d74df3da30514cfdfe72a5714
sha256sums = 4c8fb7c18c67ca20e3ee07f25cf2f0c82b66c4c173275ae8d643c91cce3c0ceb
diff --git a/PKGBUILD b/PKGBUILD
index b3e971a1acf..300325668d4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,14 +1,14 @@
# Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
pkgname=nomad
-pkgver=0.3.2
+pkgver=0.4.0
pkgrel=1
pkgdesc="A Distributed, Highly Available, Datacenter-Aware Scheduler"
arch=('i686' 'x86_64')
url="https://www.nomadproject.io/"
license=('MPL')
depends=('ethtool')
-makedepends=('go' 'godep' 'git')
+makedepends=('go' 'git')
optdepends=(
'docker'
'rkt'
@@ -17,17 +17,38 @@ 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})
-sha256sums=('3e6a54e98cc243a3ef3893442c84e9b88415aac02e82779c12fbcba9a4457d9e'
+sha256sums=('b9098781812b93a77ffdfadecd0d3fc8fd5f73dce4b48cd76495b0124bd8cfe5'
'52b0a22c3c0c72c642a8728cb48bd8797f4f6a12990e11bbb2342edcc2a9a206'
'da475bc4aa3b1493eb62f09e7f99dcc171e8ce6d74df3da30514cfdfe72a5714'
'4c8fb7c18c67ca20e3ee07f25cf2f0c82b66c4c173275ae8d643c91cce3c0ceb'
'ba80943ac42e617627c7e14be402078199ddba8d7e4276d67f0c9f6e6842d4a8')
+prepare() {
+ mkdir -p src/github.com/hashicorp
+ cd src/github.com/hashicorp
+ rm -rf nomad
+ mv ../../../$pkgname-$pkgver nomad
+ cd nomad
+
+ sed -r -e 's/^GIT_COMMIT=.*/GIT_COMMIT=-/' \
+ -e 's/^GIT_DIRTY=.*/GIT_DIRTY=""/' \
+ -i scripts/build.sh
+}
+
build() {
- cd $pkgname-$pkgver
+ cd src/github.com/hashicorp/nomad
export GOPATH="$srcdir"
- godep get || true
- godep go build
+ export PATH="$GOPATH/bin:$PATH"
+ export NOMAD_DEV=1
+
+ if [ $CARCH == "x86_64" ]; then
+ export GOARCH=amd64
+ else
+ export GPARCH=386
+ fi
+
+ make bootstrap
+ make release
}
package() {
@@ -37,7 +58,7 @@ package() {
install -Dm644 nomad-$type.conf "$pkgdir"/etc/nomad/$type.conf
done
- cd $pkgname-$pkgver
- install -Dm755 $pkgname-$pkgver "$pkgdir"/usr/bin/$pkgname
+ cd src/github.com/hashicorp/nomad
+ install -Dm755 bin/nomad "$pkgdir"/usr/bin/nomad
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}