[arch-commits] Commit in terraform/trunk (PKGBUILD)
Christian Rebischke
shibumi at archlinux.org
Fri Mar 16 15:41:34 UTC 2018
Date: Friday, March 16, 2018 @ 15:41:33
Author: shibumi
Revision: 308889
upgpkg: terraform 0.11.4-1
New Version + new PKGBUILD
Made terraform ready for reproducible builds
Modified:
terraform/trunk/PKGBUILD
----------+
PKGBUILD | 31 +++++++++++++------------------
1 file changed, 13 insertions(+), 18 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-03-16 15:17:53 UTC (rev 308888)
+++ PKGBUILD 2018-03-16 15:41:33 UTC (rev 308889)
@@ -1,42 +1,37 @@
# $Id$
# Maintainer: Jerome Leclanche <jerome at leclan.ch>
+# Maintainer: Christian Rebischke <chris.rebischke at archlinux.org>
pkgname=terraform
-pkgver=0.11.3
+pkgver=0.11.4
pkgrel=1
pkgdesc="Tool for building, changing, and versioning infrastructure safely and efficiently"
url="http://www.terraform.io/"
arch=("x86_64")
license=("MPL")
-makedepends=("go-pie" "godep" "git" "mercurial")
-_gourl="github.com/hashicorp"
+makedepends=("go-pie")
source=("$pkgname-$pkgver.tar.gz::https://github.com/hashicorp/terraform/archive/v$pkgver.tar.gz")
-sha256sums=("5c4ac2fef753eeb0d09a6c2772b81720719c698287d46a625cb5050815dbd63b")
+sha512sums=('f8c75b792d7d31bac34b3cd3fbdd647bdc9fff94496cf955ce4b83e5e4da662b29cd6551a530cbbf917fcc11f111038470a3415ff2fade2d5e6fc52bfe93aa90')
prepare() {
- mkdir -p "$srcdir/src/$_gourl"
- rm -rf "$srcdir/src/$_gourl/$pkgname"
- mv -f "terraform-$pkgver" "$srcdir/src/$_gourl/$pkgname"
- msg2 "Fetching dependencies"
- cd "$srcdir/src/$_gourl/$pkgname"
- GOPATH="$srcdir" go get -u github.com/mitchellh/gox
- GOPATH="$srcdir" go get -u golang.org/x/tools/cmd/stringer
+ export GOPATH="${srcdir}"
+ export PATH="$PATH:$GOPATH/bin"
+ mkdir -p src/github.com/hashicorp/
+ mv "${pkgname}-${pkgver}" src/github.com/hashicorp/${pkgname}
}
build() {
- msg2 "Build program"
- cd "$srcdir/src/$_gourl/$pkgname"
- GOPATH="$srcdir" PATH="$srcdir/bin:$PATH" TF_DEV=1 TF_QUICKDEV=1 make bin
+ cd src/github.com/hashicorp/"${pkgname}"
+ go build -o terraform-binary
}
package() {
- cd "$srcdir/bin"
- install -Dm755 terraform "$pkgdir/usr/bin/terraform"
-
- cd "$srcdir/src/$_gourl/$pkgname"
+ cd src/github.com/hashicorp/"${pkgname}"
+ install -Dm755 terraform-binary "$pkgdir/usr/bin/terraform"
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
# Zsh completion
install -D contrib/zsh-completion/_terraform "$pkgdir/usr/share/zsh/site-functions/_terraform"
}
More information about the arch-commits
mailing list