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

Jerome Leclanche jleclanche at archlinux.org
Wed Jun 3 14:36:13 UTC 2020


    Date: Wednesday, June 3, 2020 @ 14:36:12
  Author: jleclanche
Revision: 638257

upgpkg: terraform 0.12.26-1: Upstream release 0.12.26

Modified:
  terraform/trunk/PKGBUILD

----------+
 PKGBUILD |   30 ++++++++++++++++++------------
 1 file changed, 18 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-06-03 10:04:49 UTC (rev 638256)
+++ PKGBUILD	2020-06-03 14:36:12 UTC (rev 638257)
@@ -2,35 +2,41 @@
 # Maintainer: Christian Rebischke <chris.rebischke at archlinux.org>
 
 pkgname=terraform
-pkgver=0.12.25
+pkgver=0.12.26
 pkgrel=1
 pkgdesc="HashiCorp tool for building and updating infrastructure as code idempotently"
 url="https://www.terraform.io/"
 arch=("x86_64")
 license=("MPL")
-depends=('glibc')
-makedepends=("go-pie")
-source=("$pkgname-$pkgver.tar.gz::https://github.com/hashicorp/terraform/archive/v$pkgver.tar.gz"
-        "test-backport.patch")
-sha512sums=('875b41987972f7f6e3fea0444a98ba6b033b3a932995693fe047f8751cf556f785a54efd9f53a0ceef598f73df7c6064908fa51824dd8a5b6c3686ba557e9730'
-            '5c7468f47c19867598bafe07322d1c5a7314286eabab6012aa70a55967967467e620f5a56aeecadf6ebd13021f2c01a4e54c70c41ee09dfd702a082507b3ae47')
+makedepends=("go")
+source=(
+	"$pkgname-$pkgver.tar.gz::https://github.com/hashicorp/terraform/archive/v$pkgver.tar.gz"
+	"test-backport.patch"
+)
+sha256sums=(
+	"4db5deb8c6a81956bf603196a1300aacbe80dd5716244ae20c2f9b3df571df4e"
+	"10071fd0fe3d8c4456835299eceabae55b8d26a28170cbac5d1c92eb3187219a"
+)
 changelog="CHANGELOG.md"
 
 prepare() {
 	cd "$pkgname-$pkgver"
-  patch -Np1 < "${srcdir}/test-backport.patch"
+	patch -Np1 < "${srcdir}/test-backport.patch"
 }
 
 build() {
 	cd "$pkgname-$pkgver"
-	export CGO_LDFLAGS="$LDFLAGS"
-	export GOFLAGS="-trimpath -mod=vendor"
+	export CGO_CPPFLAGS="${CPPFLAGS}"
+	export CGO_CFLAGS="${CFLAGS}"
+	export CGO_CXXFLAGS="${CXXFLAGS}"
+	export CGO_LDFLAGS="${LDFLAGS}"
+	export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
 	go build -o terraform-binary
 }
 
 check() {
-  cd "${pkgname}-${pkgver}"
-  go test -mod=vendor ./...
+	cd "${pkgname}-${pkgver}"
+	go test -mod=vendor ./...
 }
 
 package() {


More information about the arch-commits mailing list