[arch-commits] Commit in golang-gopkg-alecthomas-kingpin.v2/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Fri Mar 1 15:49:18 UTC 2019


    Date: Friday, March 1, 2019 @ 15:49:18
  Author: felixonmars
Revision: 437281

upgpkg: golang-gopkg-alecthomas-kingpin.v2 2.2.6-2

fix installation dir

Modified:
  golang-gopkg-alecthomas-kingpin.v2/trunk/PKGBUILD

----------+
 PKGBUILD |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-03-01 15:34:06 UTC (rev 437280)
+++ PKGBUILD	2019-03-01 15:49:18 UTC (rev 437281)
@@ -2,7 +2,7 @@
 
 pkgname=golang-gopkg-alecthomas-kingpin.v2
 pkgver=2.2.6
-pkgrel=1
+pkgrel=2
 pkgdesc='A Go (golang) command line and flag parser'
 arch=('any')
 url="https://gopkg.in/alecthomas/kingpin.v2"
@@ -14,15 +14,15 @@
 
 check() {
   export GOPATH="$srcdir/build:/usr/share/gocode"
-  mkdir -p "$srcdir"/build/src/gopkg.in
-  cp -a "$srcdir"/kingpin-$pkgver "$srcdir"/build/src/gopkg.in/kingpin.v2
-  cd "$srcdir"/build/src/gopkg.in/kingpin.v2
+  mkdir -p "$srcdir"/build/src/gopkg.in/alecthomas
+  cp -a "$srcdir"/kingpin-$pkgver "$srcdir"/build/src/gopkg.in/alecthomas/kingpin.v2
+  cd "$srcdir"/build/src/gopkg.in/alecthomas/kingpin.v2
   go test -v $(go list ./...)
 }
 
 package() {
-  mkdir -p "$pkgdir"/usr/share/gocode/src/gopkg.in
-  cp -a "$srcdir"/kingpin-$pkgver "$pkgdir"/usr/share/gocode/src/gopkg.in/kingpin.v2
+  mkdir -p "$pkgdir"/usr/share/gocode/src/gopkg.in/alecthomas
+  cp -a "$srcdir"/kingpin-$pkgver "$pkgdir"/usr/share/gocode/src/gopkg.in/alecthomas/kingpin.v2
 
   install -Dm644 kingpin-$pkgver/COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
 }


More information about the arch-commits mailing list