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

Morten Linderud foxboron at archlinux.org
Thu Feb 25 17:02:46 UTC 2021


    Date: Thursday, February 25, 2021 @ 17:02:45
  Author: foxboron
Revision: 874147

upgpkg: github-cli 1.6.2-1

Modified:
  github-cli/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-02-25 16:58:17 UTC (rev 874146)
+++ PKGBUILD	2021-02-25 17:02:45 UTC (rev 874147)
@@ -3,7 +3,7 @@
 # Contributor: Richard Bradfield <bradfier at fstab.me>
 
 pkgname=github-cli
-pkgver=1.5.0
+pkgver=1.6.2
 pkgrel=1
 pkgdesc="The GitHub CLI"
 arch=("x86_64")
@@ -10,12 +10,18 @@
 url="https://github.com/cli/cli"
 license=("MIT")
 depends=("glibc" "mailcap")
-makedepends=("go")
-checkdepends=("git")
+makedepends=("go" "git")
 optdepends=("git: To interact with repositories")
 source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
-sha256sums=('49c42a3b951b67e29bc66e054fedb90ac2519f7e1bfc5c367e82cb173e4bb056')
+sha256sums=('8cc3cafb85e1234f61ef5c4468d07307142fa0cc99bdc7452251cf1cac9b38ae')
 
+
+prepare() {
+    cd "cli-${pkgver}"
+    # TODO: These tests invoke the TTY and our container *really* does not like that
+    rm pkg/cmd/auth/login/login_test.go
+}
+
 build() {
     cd "cli-$pkgver"
 
@@ -33,13 +39,17 @@
 
 check(){
     cd "cli-$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 -ldflags=-linkmode=external"
     make test
 }
 
 package() {
     cd "cli-$pkgver"
-    install -Dm755 "bin/gh" "$pkgdir/usr/bin/gh"
-    cp -r share/ "$pkgdir"/usr
+    make DESTDIR="${pkgdir}" prefix="/usr" install
     install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
     install -Dm644 "README.md" "$pkgdir/usr/share/doc/$pkgname/README.md"
 }


More information about the arch-commits mailing list