# Contributor: Thomas Boerger # Contributor: Gennady Feldman # Maintainer: Thomas Boerger pkgname=terraform pkgver=0.8.5 pkgrel=0 pkgdesc="Building, changing, and combining infrastructure safely and efficiently" url="https://www.terraform.io/" arch="all !armhf" license="MPL 2.0" depends="" makedepends="go" install="" 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"/ || return 1 default_prepare } build() { cd "$builddir" export GOPATH="$srcdir" go build -v -o bin/$pkgname || return 1 } package() { install -Dm755 "$builddir"/bin/$pkgname "$pkgdir"/usr/bin/$pkgname || return 1 } md5sums="5631845e23e4d471115c56cc7c6240f6 terraform-0.8.5.tar.gz" sha256sums="3d59b81350fcb3a5ca5ac06a19275c2941f67d00989630774faa659908098ebf terraform-0.8.5.tar.gz" sha512sums="e0396e83b9d21262d8ed7f09e91840cfd086f30e805e4e2b483558553181646a7c67e31345f47b3ea7408e71422aa12231672f5a604fa9a59b291f8895628371 terraform-0.8.5.tar.gz"