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

Morten Linderud foxboron at archlinux.org
Sun Jul 5 15:21:00 UTC 2020


    Date: Sunday, July 5, 2020 @ 15:20:59
  Author: foxboron
Revision: 657861

upgpkg: hub 2.14.2-2

Updated to current go package guidelines

Modified:
  hub/trunk/PKGBUILD

----------+
 PKGBUILD |   10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-05 15:20:13 UTC (rev 657860)
+++ PKGBUILD	2020-07-05 15:20:59 UTC (rev 657861)
@@ -5,7 +5,7 @@
 
 pkgname=hub
 pkgver=2.14.2
-pkgrel=1
+pkgrel=2
 
 pkgdesc="cli interface for Github"
 url="https://hub.github.com"
@@ -13,7 +13,7 @@
 license=('MIT')
 
 depends=('git')
-makedepends=('go-pie')
+makedepends=('go')
 
 source=("hub-$pkgver.tar.gz::https://github.com/github/hub/archive/v$pkgver.tar.gz")
 sha256sums=('e19e0fdfd1c69c401e1c24dd2d4ecf3fd9044aa4bd3f8d6fd942ed1b2b2ad21a')
@@ -22,6 +22,12 @@
 build() {
   cd "$srcdir"/hub-$pkgver
 
+  export CGO_CPPFLAGS="${CPPFLAGS}"
+  export CGO_CFLAGS="${CFLAGS}"
+  export CGO_CXXFLAGS="${CXXFLAGS}"
+  export CGO_LDFLAGS="${LDFLAGS}"
+  export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
+
   make
   make man-pages
 }



More information about the arch-commits mailing list