diff options
author | Massimiliano Torromeo | 2016-02-25 22:46:02 +0100 |
---|---|---|
committer | Massimiliano Torromeo | 2016-02-25 22:46:02 +0100 |
commit | a72791df508d216e9473b34643f06fec5e6fc7b9 (patch) | |
tree | 65e1a207be8d3384e1a1ff5673163fdd173098d8 /PKGBUILD | |
download | aur-a72791df508d216e9473b34643f06fec5e6fc7b9.tar.gz |
Initial release
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4e9b032e59ca --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com> + +pkgname=nomad +pkgver=0.3.0 +pkgrel=1 +pkgdesc="A Distributed, Highly Available, Datacenter-Aware Scheduler" +arch=('i686' 'x86_64') +url="https://www.nomadproject.io/" +license=('MPL') +depends=('glibc') +makedepends=('go' 'godep' 'git') +source=(https://github.com/hashicorp/nomad/archive/v$pkgver/$pkgname-$pkgver.tar.gz) +sha256sums=('b5e7520cdd542df14ae35778c066e296c41bb6aba8bf8286956f3005f407c486') + +build() { + cd $pkgname-$pkgver + export GOPATH="$srcdir" + godep get || true + godep go build +} + +package() { + cd $pkgname-$pkgver + install -Dm755 $pkgname-$pkgver "$pkgdir"/usr/bin/$pkgname + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} |