parent
6e6427a3fb
commit
203594e53d
1 changed files with 1 additions and 19 deletions
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'terraform'
|
||||
pkgname=terraform
|
||||
version=0.8.1
|
||||
revision=1
|
||||
revision=2
|
||||
build_style=go
|
||||
short_desc="A tool for building, changing, and combining infrastructure"
|
||||
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
|
||||
|
@ -10,21 +10,3 @@ homepage="https://www.terraform.io/"
|
|||
go_import_path="github.com/hashicorp/$pkgname"
|
||||
distfiles="https://$go_import_path/archive/v$version.tar.gz"
|
||||
checksum=927b4909a64b8550376e87c737eab0f34a0895f2700fa8bc81de339f4a7ffe20
|
||||
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue