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

Morten Linderud foxboron at archlinux.org
Sun Jul 5 14:33:26 UTC 2020


    Date: Sunday, July 5, 2020 @ 14:33:26
  Author: foxboron
Revision: 657837

upgpkg: packer 1.6.0-2

Updated to current go packaging guidelines

Modified:
  packer/trunk/PKGBUILD

----------+
 PKGBUILD |   17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-05 14:26:34 UTC (rev 657836)
+++ PKGBUILD	2020-07-05 14:33:26 UTC (rev 657837)
@@ -2,12 +2,12 @@
 pkgname=packer
 replaces=('packer-io')
 pkgver=1.6.0
-pkgrel=1
+pkgrel=2
 pkgdesc="tool for creating identical machine images for multiple platforms from a single source configuration"
 arch=('x86_64')
 url="https://github.com/hashicorp/packer"
 license=('MPL')
-makedepends=('git' 'go-pie' 'go-tools')
+makedepends=('git' 'go' 'go-tools')
 depends=('glibc')
 source=("${pkgname}-${pkgver}.tar.gz::https://github.com/hashicorp/packer/archive/v${pkgver}.tar.gz")
 sha512sums=('1ae912ea6f4906dff988b59d4b3e964fabd7fc13b8b936af02b5ed9963557cb057b26aabdc542091a7d31a162780b1c536fbc38f4ec3b42800f9167f37f814b1')
@@ -23,13 +23,12 @@
 
 build() {
   cd "src/github.com/hashicorp/${pkgname}"
-	go build \
-  -trimpath \
-  -mod=readonly \
-  -buildmode=pie \
-  -modcacherw \
-  -ldflags "-extldflags \"${LDFLAGS}\"" \
-  -o packer-binary
+  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 packer-binary
 }
 
 check() {



More information about the arch-commits mailing list