[arch-commits] Commit in go-bindata-assetfs/trunk (PKGBUILD)

Morten Linderud foxboron at archlinux.org
Sun Jul 5 15:24:16 UTC 2020


    Date: Sunday, July 5, 2020 @ 15:24:15
  Author: foxboron
Revision: 657865

upgpkg: go-bindata-assetfs 1.0.0-5

Updated to current go package guidelines

Modified:
  go-bindata-assetfs/trunk/PKGBUILD

----------+
 PKGBUILD |   11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-05 15:22:52 UTC (rev 657864)
+++ PKGBUILD	2020-07-05 15:24:15 UTC (rev 657865)
@@ -2,13 +2,13 @@
 
 pkgname=go-bindata-assetfs
 pkgver=1.0.0
-pkgrel=4
+pkgrel=5
 pkgdesc="Serves embedded files from jteeuwen/go-bindata with net/http"
 arch=('x86_64')
 url="https://github.com/elazarl/go-bindata-assetfs"
 license=('BSD')
 depends=('glibc')
-makedepends=('go-pie')
+makedepends=('go')
 source=(
   "${pkgname}-${pkgver}.tar.gz::https://github.com/elazarl/go-bindata-assetfs/archive/v${pkgver}.tar.gz"
   'https://github.com/elazarl/go-bindata-assetfs/commit/38087fe4dafb822e541b3f7955075cc1c30bd294.patch'
@@ -25,7 +25,12 @@
 
 build() {
   cd "${srcdir}/src/github.com/elazarl/go-bindata-assetfs/"
-  GOPATH="${srcdir}" go build -trimpath -ldflags "-extldflags ${LDFLAGS}" -o go-bindata-assetfs ./go-bindata-assetfs/
+  export CGO_CPPFLAGS="${CPPFLAGS}"
+  export CGO_CFLAGS="${CFLAGS}"
+  export CGO_CXXFLAGS="${CXXFLAGS}"
+  export CGO_LDFLAGS="${LDFLAGS}"
+  export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
+  GOPATH="${srcdir}" go build -o go-bindata-assetfs ./go-bindata-assetfs/
 }
 
 package() {


More information about the arch-commits mailing list