# Contributor: Thomas Boerger # Contributor: Gennady Feldman # Maintainer: Thomas Boerger pkgname=terraform pkgver=0.10.8 pkgrel=0 pkgdesc="Building, changing, and combining infrastructure safely and efficiently" url="https://www.terraform.io/" arch="all !armhf" license="MPL 2.0" makedepends="go" source="${pkgname}-${pkgver}.tar.gz::https://github.com/hashicorp/terraform/archive/v$pkgver.tar.gz" builddir="$srcdir/src/github.com/hashicorp/$pkgname" prepare() { mkdir -p ${builddir%/*} mv $srcdir/$pkgname-$pkgver "$builddir"/ default_prepare } build() { cd "$builddir" export GOPATH="$srcdir" go build -v -o bin/$pkgname } package() { install -Dm755 "$builddir"/bin/$pkgname "$pkgdir"/usr/bin/$pkgname } sha512sums="60ac7ee2089e9f8027b811dd11a6dd3b44512e74dcdd8402f93f5c57eec78465f74428d9b6e4b32a284a1682ebb48fdf5be15c4a45f0c56c95d7c4934d392450 terraform-0.10.8.tar.gz"