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

Eli Schwartz eschwartz at archlinux.org
Tue Jun 18 01:22:32 UTC 2019


    Date: Tuesday, June 18, 2019 @ 01:22:32
  Author: eschwartz
Revision: 482056

upgpkg: hub 2.12.0-1

upstream release
hub now uses go modules, which means that the GOPATH hacks can be dropped

Modified:
  hub/trunk/PKGBUILD

----------+
 PKGBUILD |   26 +++++++++++++++-----------
 1 file changed, 15 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-06-18 01:21:06 UTC (rev 482055)
+++ PKGBUILD	2019-06-18 01:22:32 UTC (rev 482056)
@@ -4,7 +4,7 @@
 # Contributor: Alfredo Palhares <masterkorp at masterkorp.net>
 
 pkgname=hub
-pkgver=2.11.2
+pkgver=2.12.0
 pkgrel=1
 
 pkgdesc="cli interface for Github"
@@ -15,31 +15,35 @@
 depends=('git')
 makedepends=('go-pie')
 
-source=("hub-$pkgver.tar.gz::https://github.com/github/hub/archive/v$pkgver.tar.gz")
-sha256sums=('1a80685d3d4fe14012c4f5e5cda9a2c5fe680a81729e692008aa1414f8e1f972')
-b2sums=('0650e21f9a3ff83d07f2a0e2ba1bf11bac1ac96fc4a17fc77bcc21addc1fd65769e49751d19dd79624970d8474d727695ee90f28f42b07fa6f9cd0b775dc6c0d')
+source=("hub-$pkgver.tar.gz::https://github.com/github/hub/archive/v$pkgver.tar.gz"
+        "https://github.com/github/hub/commit/7d915e232caed4f89b95f9c93c94c98b3f38a9c9.patch")
+sha256sums=('937e0ea3ba6dcc8030889d987313efa4da27b6c54ed20fb40fbf5ff9df4c3780'
+            'fc7f7bfc4a58c9c631fd8f3696c96a7d0a96dc53322f1cc3e95cd003ecf7661e')
+b2sums=('f4ba878c5ea541b3eeee9b8640bc615ed0b1d0e2686d9b491b05cff2664a9e91e29a6bf4ef2bba415de8f6f3439a33807b9e19c8a5da6b90c845bcc963c276f1'
+        'b3b3f9c77ff44e4c71722cbe894dd5878c2740e813d27dc3883e242acde1c4e2b0d80756ad7e370dce310c5e1b5c8a9e9bf482a3f54ab9ea313676e2d792dda1')
 
 prepare() {
-  mkdir -p src/github.com/github
-  cp -r hub-$pkgver src/github.com/github/hub
+  cd "$srcdir"/hub-$pkgver
+
+  # activate go modules by default on new enough golang compiler
+  patch -p1 -i ../7d915e232caed4f89b95f9c93c94c98b3f38a9c9.patch
 }
 
 build() {
-  cd src/github.com/github/hub
+  cd "$srcdir"/hub-$pkgver
 
-  export GOPATH="$srcdir"
   make
   make man-pages
 }
 
 check() {
-  cd src/github.com/github/hub
+  cd "$srcdir"/hub-$pkgver
 
-  GOPATH="$srcdir" make test
+  make test
 }
 
 package() {
-  cd src/github.com/github/hub
+  cd "$srcdir"/hub-$pkgver
 
   make PREFIX="$pkgdir"/usr install
 



More information about the arch-commits mailing list