diff options
author | Lukas Grossar | 2020-03-12 12:42:12 +0100 |
---|---|---|
committer | Lukas Grossar | 2020-03-12 12:42:12 +0100 |
commit | e6b0a084688bff76a18e45c78f0391bbee92491a (patch) | |
tree | 97c3649c6d7c4f7acd838e89c693f5ff05f28fbf | |
parent | 40d683c693c0526a112f76cd01829a0ebe25bacc (diff) | |
download | aur-e6b0a084688bff76a18e45c78f0391bbee92491a.tar.gz |
Make build reproducible
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | PKGBUILD | 32 |
2 files changed, 24 insertions, 20 deletions
@@ -1,22 +1,20 @@ pkgbase = kubernetes-helm pkgdesc = A tool to manage Kubernetes charts pkgver = 3.1.1 - pkgrel = 3 + pkgrel = 4 url = https://github.com/helm/helm arch = i686 arch = x86_64 arch = arm arch = aarch64 license = Apache - makedepends = go-pie + makedepends = go makedepends = git depends = glibc provides = kubernetes-helm - conflicts = kubernetes-helm-bin - conflicts = kubernetes-helm - conflicts = kubernetes-helm-git - source = git+https://github.com/helm/helm#tag=v3.1.1 - md5sums = SKIP + conflicts = helm + source = kubernetes-helm-3.1.1.tar.gz::https://github.com/helm/helm/archive/v3.1.1.tar.gz + sha256sums = d3e4920f58ceec28bb3916e0c453427273f63db701a354701663cc149e63ea28 pkgname = kubernetes-helm @@ -1,32 +1,38 @@ # Maintainer: Lukas Grossar <lukas.grossar@gmail.com> # Contributor: Ivan Shapovalov <intelfx@intelfx.name> # Contributor: Wayne Cheng <waynethecheng@gmail.com> +# Contributor: Matthias Lisin <ml@visu.li> pkgname=kubernetes-helm pkgver=3.1.1 -pkgrel=3 +_commit=afe70585407b420d0097d07b21c47dc511525ac8 +pkgrel=4 pkgdesc="A tool to manage Kubernetes charts" arch=('i686' 'x86_64' 'arm' 'aarch64') url="https://github.com/helm/helm" depends=('glibc') -makedepends=('go-pie' 'git') -provides=(kubernetes-helm) -conflicts=( - 'kubernetes-helm-bin' - 'kubernetes-helm' - 'kubernetes-helm-git' -) +makedepends=('go' 'git') +provides=('kubernetes-helm') +conflicts=('helm') license=('Apache') -source=("git+https://github.com/helm/helm#tag=v${pkgver}") -md5sums=('SKIP') +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/helm/helm/archive/v${pkgver}.tar.gz") +sha256sums=('d3e4920f58ceec28bb3916e0c453427273f63db701a354701663cc149e63ea28') build() { - cd "$srcdir/helm" - make build + cd "$srcdir/helm-${pkgver}" + go build -o bin/helm \ + -buildmode=pie \ + -trimpath \ + -ldflags "\ + -X 'helm.sh/helm/v3/internal/version.version=v${pkgver}' \ + -X 'helm.sh/helm/v3/internal/version.gitCommit=${_commit}' \ + -X 'helm.sh/helm/v3/internal/version.gitTreeState=clean' \ + -extldflags ${LDFLAGS}" \ + ./cmd/helm } package() { - install -Dm755 "$srcdir/helm/bin/helm" -t "$pkgdir/usr/bin" + install -Dm755 "$srcdir/helm-${pkgver}/bin/helm" -t "$pkgdir/usr/bin" "$pkgdir/usr/bin/helm" completion bash | install -Dm644 /dev/stdin "$pkgdir/usr/share/bash-completion/completions/helm" "$pkgdir/usr/bin/helm" completion zsh | install -Dm644 /dev/stdin "$pkgdir/usr/share/zsh/site-functions/_helm" |