[arch-commits] Commit in helm/repos (community-x86_64 community-x86_64/PKGBUILD)

Morten Linderud foxboron at archlinux.org
Sun Apr 5 17:09:18 UTC 2020


    Date: Sunday, April 5, 2020 @ 17:09:18
  Author: foxboron
Revision: 611870

archrelease: copy trunk to community-x86_64

Added:
  helm/repos/community-x86_64/
  helm/repos/community-x86_64/PKGBUILD
    (from rev 611869, helm/trunk/PKGBUILD)

----------+
 PKGBUILD |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)

Copied: helm/repos/community-x86_64/PKGBUILD (from rev 611869, helm/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2020-04-05 17:09:18 UTC (rev 611870)
@@ -0,0 +1,49 @@
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+# Contributor: Lukas Grossar <lukas.grossar at gmail.com>
+# Contributor: Ivan Shapovalov <intelfx at intelfx.name>
+# Contributor: Wayne Cheng <waynethecheng at gmail.com>
+# Contributor: Matthias Lisin <ml at visu.li>
+
+pkgname=helm
+pkgver=3.1.2
+pkgrel=3
+pkgdesc="The Kubernetes Package Manager"
+arch=("x86_64")
+url="https://helm.sh/"
+license=("Apache")
+depends=('glibc')
+makedepends=("go" "git")
+source=("git+https://github.com/helm/helm.git#tag=v$pkgver?signed")
+validpgpkeys=('672C657BE06B4B30969C4A57461449C25E36B98E')
+sha256sums=('SKIP')
+
+prepare() {
+    cd "${pkgname}"
+
+    # fix: update unit test for go 1.14 error string change (#7835)
+    # https://github.com/helm/helm/pull/7835
+    git cherry-pick -n 3706aa7ca666fda6d8301c55118fa1c092f124a2 
+
+    # Repair failing unit tests - failure caused by os.Stat return values for directory size on Linux.
+    # https://github.com/helm/helm/pull/7189
+    git cherry-pick -n e3976ab7a286ecbe1038a725fbc4149b95267abf
+}
+
+build() {
+    cd "${pkgname}"
+    export CGO_LDFLAGS="$LDFLAGS"
+    make GOFLAGS="-buildmode=pie -trimpath"
+}
+
+check(){
+    cd "${pkgname}"
+    export CGO_LDFLAGS="$LDFLAGS"
+    make GOFLAGS="-buildmode=pie -trimpath" test-unit
+}
+
+package(){
+    cd "${pkgname}"
+    install -Dm755 bin/helm -t "$pkgdir/usr/bin"
+    bin/helm completion bash | install -Dm644 /dev/stdin "$pkgdir/usr/share/bash-completion/completions/helm"
+    bin/helm completion zsh | install -Dm644 /dev/stdin "$pkgdir/usr/share/zsh/site-functions/_helm"
+}



More information about the arch-commits mailing list