void-packages/srcpkgs/terraform/template

31 lines
760 B
Bash
Raw Normal View History

2016-03-23 11:47:01 +01:00
# Template file for 'terraform'
pkgname=terraform
2016-05-10 11:07:50 +02:00
version=0.6.16
2016-04-23 11:12:02 +02:00
revision=1
2016-03-23 11:47:01 +01:00
build_style=go
short_desc="A tool for building, changing, and combining infrastructure"
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
license="MPL-2.1"
homepage="https://www.terraform.io/"
go_import_path="github.com/hashicorp/$pkgname"
distfiles="https://$go_import_path/archive/v$version.tar.gz"
2016-05-10 11:07:50 +02:00
checksum=c84bae32a170d993982de9c537eac74f70601e7a667dc2ea9803b86e04b1221d
post_build() {
for F in $(find -type f -name main.go); do
go get -x $go_import_path/${F%/*}
done
}
do_install() {
find "${GOPATH}/bin" -type f -executable | while read line
do
if [ "$(basename $line)" = terraform ]; then
vbin $line
else
vbin $line terraform-$(basename $line)
fi
done
}