30 lines
759 B
Bash
30 lines
759 B
Bash
# Template file for 'terraform'
|
|
pkgname=terraform
|
|
version=0.7.0
|
|
revision=1
|
|
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"
|
|
checksum=15f8f0589978096152876f5b9ae0853700f52666ff7911e4dad5505e80b12d3b
|
|
|
|
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
|
|
}
|