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

Morten Linderud foxboron at archlinux.org
Sat Mar 7 13:21:54 UTC 2020


    Date: Saturday, March 7, 2020 @ 13:21:53
  Author: foxboron
Revision: 591114

upgpkg: k9s 0.17.5-1

Enables testes and -trimpath

Fixes FS#65710

Modified:
  k9s/trunk/PKGBUILD

----------+
 PKGBUILD |   20 +++++++++++++-------
 1 file changed, 13 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-07 13:21:46 UTC (rev 591113)
+++ PKGBUILD	2020-03-07 13:21:53 UTC (rev 591114)
@@ -1,7 +1,8 @@
 # Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
 
 pkgname=k9s
-pkgver=0.17.4
+pkgver=0.17.5
 pkgrel=1
 pkgdesc='Kubernetes TUI for managing clusters and pods'
 arch=(x86_64)
@@ -8,20 +9,25 @@
 url='https://github.com/derailed/k9s'
 license=(APACHE)
 makedepends=(git go-pie)
-source=("git+$url#commit=413605a3e7eb0f9a38029b657d3aa0b6315bba35") # 0.17.4
+_commit=bd70982b50eb795e04f1b3946a79ab5c9916f1ea # 0.17.5
+source=("git+$url#commit=$_commig")
 sha256sums=('SKIP')
 
 build() {
   cd $pkgname
-  go build \
-    -gcflags "all=-trimpath=${PWD}" \
-    -asmflags "all=-trimpath=${PWD}" \
-    -ldflags "-extldflags ${LDFLAGS}"
+  export GOFLAGS="-trimpath"
+  export CGO_LDFLAGS="${LDFLAGS}"
+  make build
 }
 
+check() {
+  cd $pkgname
+  make test
+}
+
 package() {
   cd $pkgname
-  install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname"
+  install -Dm755 "execs/$pkgname" "$pkgdir/usr/bin/$pkgname"
   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
 



More information about the arch-commits mailing list