[arch-commits] Commit in terraform/trunk (PKGBUILD)

Jerome Leclanche jleclanche at archlinux.org
Tue Oct 8 14:29:22 UTC 2019


    Date: Tuesday, October 8, 2019 @ 14:29:21
  Author: jleclanche
Revision: 514237

upgpkg: terraform 0.12.10-1

Upstream release 0.12.10

Modified:
  terraform/trunk/PKGBUILD

----------+
 PKGBUILD |   21 ++++++++-------------
 1 file changed, 8 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-10-08 14:19:42 UTC (rev 514236)
+++ PKGBUILD	2019-10-08 14:29:21 UTC (rev 514237)
@@ -2,8 +2,8 @@
 # Maintainer: Christian Rebischke <chris.rebischke at archlinux.org>
 
 pkgname=terraform
-pkgver=0.12.9
-pkgrel=2
+pkgver=0.12.10
+pkgrel=1
 pkgdesc="Tool for building, changing, and versioning infrastructure safely and efficiently"
 url="https://www.terraform.io/"
 arch=("x86_64")
@@ -10,23 +10,18 @@
 license=("MPL")
 makedepends=("go-pie")
 source=("$pkgname-$pkgver.tar.gz::https://github.com/hashicorp/terraform/archive/v$pkgver.tar.gz")
-sha256sums=('5036572edd08d53fcf2ee1b5363e849c42c93607ece5778ab625219bfa45ce79')
+sha256sums=("289d5287fda0bb870c1fb1ed504523bf24885ccf763b9547d91f8225310dc4f5")
 changelog="CHANGELOG.md"
 
-prepare() {
-	export GOPATH="${srcdir}"
-	export PATH="$PATH:$GOPATH/bin"
-	mkdir -p src/github.com/hashicorp/
-	mv "${pkgname}-${pkgver}" src/github.com/hashicorp/${pkgname}
-}
-
 build() {
-	cd src/github.com/hashicorp/"${pkgname}"
+	cd "$pkgname-$pkgver"
+	export CGO_LDFLAGS="$LDFLAGS"
+	export GOFLAGS="-trimpath"
 	go build -o terraform-binary
 }
 
 package() {
-	cd src/github.com/hashicorp/"${pkgname}"
+	cd "$pkgname-$pkgver"
 	install -Dm755 terraform-binary "$pkgdir/usr/bin/terraform"
-	install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }



More information about the arch-commits mailing list