Date: Friday, September 30, 2022 @ 19:37:25
  Author: segaja
Revision: 1320098

upgpkg: stern 1.22.0-3

Modified:
  stern/trunk/PKGBUILD

----------+
 PKGBUILD |   16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2022-09-30 19:30:47 UTC (rev 1320097)
+++ PKGBUILD    2022-09-30 19:37:25 UTC (rev 1320098)
@@ -2,7 +2,7 @@
 
 pkgname=stern
 pkgdesc="Multi pod and container log tailing for Kubernetes"
-pkgver=1.21.0
+pkgver=1.22.0
 pkgrel=3
 arch=('x86_64')
 url="https://github.com/stern/stern";
@@ -10,8 +10,9 @@
 options=(!lto)
 depends=('glibc')
 makedepends=('go')
+optdepends=('bash-completion: for bash completion support')
 source=("${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
-sha512sums=('e1e0b73cbddd6dd7729444f2ef9aa787a64f7ba70e951c39012e9d5faef6834363049f02f03163d48e94908ef238394878178b5a6dbcc22fa6a8d349049c9467')
+sha512sums=('1f11b4613175c3b58bba1b107c6d19f8d32c76836b1092e1063679feb6f33b059c52d5b165b0a5906d5edff6efcb133d7032ab0fcc1e69751e8f184f7f4f7ddc')
 
 build() {
   cd "${pkgname}-${pkgver}"
@@ -22,7 +23,7 @@
   export CGO_LDFLAGS="${LDFLAGS}"
   export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
 
-  go build \
+  go build -v -x \
     -ldflags "-linkmode external -X 
\"github.com/stern/stern/cmd.version=${pkgver}\"" \
     -o "./out/${pkgname}"
 }
@@ -36,10 +37,11 @@
 package() {
   cd "${pkgname}-${pkgver}"
 
-  install -Dm 755 "./out/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
+  install --verbose -D --mode=0755 "./out/${pkgname}" 
"${pkgdir}/usr/bin/${pkgname}"
 
-  "${pkgdir}/usr/bin/${pkgname}" --completion=bash | install -Dm644 /dev/stdin 
"${pkgdir}/usr/share/bash-completion/completions/${pkgname}"
-  "${pkgdir}/usr/bin/${pkgname}" --completion=zsh | install -Dm644 /dev/stdin 
"${pkgdir}/usr/share/zsh/site-functions/_${pkgname}"
+  "${pkgdir}/usr/bin/${pkgname}" --completion=bash | install --verbose -D 
--mode=0644 /dev/stdin 
"${pkgdir}/usr/share/bash-completion/completions/${pkgname}"
+  "${pkgdir}/usr/bin/${pkgname}" --completion=fish | install --verbose -D 
--mode=0644 /dev/stdin 
"${pkgdir}/usr/share/fish/vendor_completions.d/${pkgname}.fish"
+  "${pkgdir}/usr/bin/${pkgname}" --completion=zsh | install --verbose -D 
--mode=0644 /dev/stdin "${pkgdir}/usr/share/zsh/site-functions/_${pkgname}"
 
-  install -Dm 644 CONTRIBUTING.md README.md --target-directory 
"${pkgdir}/usr/share/doc/${pkgname}"
+  install --verbose -D --mode=0644 *.md --target-directory 
"${pkgdir}/usr/share/doc/${pkgname}"
 }

Reply via email to