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

Morten Linderud foxboron at archlinux.org
Tue Jun 9 21:18:36 UTC 2020


    Date: Tuesday, June 9, 2020 @ 21:18:36
  Author: foxboron
Revision: 640984

upgpkg: git-lfs 2.11.0-2

Go package guidelines

Modified:
  git-lfs/trunk/PKGBUILD

----------+
 PKGBUILD |   15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-06-09 21:18:20 UTC (rev 640983)
+++ PKGBUILD	2020-06-09 21:18:36 UTC (rev 640984)
@@ -2,12 +2,12 @@
 
 pkgname=git-lfs
 pkgver=2.11.0
-pkgrel=1
+pkgrel=2
 pkgdesc="Git extension for versioning large files"
 arch=('x86_64')
 url="https://git-lfs.github.com"
 license=('MIT')
-makedepends=('go-pie' 'ruby-ronn' 'go-tools')
+makedepends=('go' 'ruby-ronn' 'go-tools')
 depends=('git')
 source=("git+https://github.com/git-lfs/git-lfs.git#tag=v${pkgver}?signed")
 validpgpkeys=('88ACE9B29196305BA9947552F1BA225C0223B187') # brian m. carlson <sandals at crustytoothpaste.net>
@@ -15,11 +15,12 @@
 
 build(){
   cd "$pkgname"
-  go build \
-    -mod=vendor \
-    -trimpath \
-    -ldflags "-extldflags ${LDFLAGS}" \
-    .
+  export CGO_CPPFLAGS="${CPPFLAGS}"
+  export CGO_CFLAGS="${CFLAGS}"
+  export CGO_CXXFLAGS="${CXXFLAGS}"
+  export CGO_LDFLAGS="${LDFLAGS}"
+  export GOFLAGS="-buildmode=pie -trimpath -mod=vendor -modcacherw"
+  go build .
   make man
 }
 



More information about the arch-commits mailing list