Date: Wednesday, September 9, 2020 @ 17:19:46 Author: shibumi Revision: 701625
archrelease: copy trunk to community-x86_64 Added: kubectl/repos/community-x86_64/PKGBUILD (from rev 701624, kubectl/trunk/PKGBUILD) kubectl/repos/community-x86_64/gotags.patch (from rev 701624, kubectl/trunk/gotags.patch) Deleted: kubectl/repos/community-x86_64/PKGBUILD kubectl/repos/community-x86_64/gotags.patch --------------+ PKGBUILD | 88 ++++++++++++++++++++++++++++----------------------------- gotags.patch | 26 ++++++++-------- 2 files changed, 57 insertions(+), 57 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2020-09-09 17:19:40 UTC (rev 701624) +++ PKGBUILD 2020-09-09 17:19:46 UTC (rev 701625) @@ -1,44 +0,0 @@ -# Maintainer: Christian Rebischke <chris.rebisc...@archlinux.org> -# Contributor: Ivan Shapovalov <inte...@intelfx.name> -# Contributor: larte <lauri.a...@gmail.com> -# Contributor: Maxwell Pray a.k.a. Synthead <synth...@gmail.com> -# Contributor: gun1x <gunix@gunix.cloud> - -pkgname=kubectl -pkgdesc="Kubernetes.io client binary" -pkgver=1.18.5 -pkgrel=2 -arch=('x86_64') -url="https://kubernetes.io" -license=('Apache') -depends=('glibc') -makedepends=('go' 'rsync' 'git') -#source=("git+https://github.com/kubernetes/kubernetes#tag=v${pkgver}") -source=("kubernetes-$pkgver.tar.gz::https://dl.k8s.io/v$pkgver/kubernetes-src.tar.gz" - "gotags.patch") -sha512sums=('9ddcd8b517e3cf78113ef977c365d26f0f27fe9b7fd9410f0214fd38cd38c6de6f37d7fbe2bb398587caceb4ae484afc2fe7ae14b80b70fe728405f3d5bd4115' - '413ddce3e475107db030a04d6ed53d145ead8d13d2d153c4cb6ce635643d7cc922cab90f528b7f8152b43f157c2c441759e6d48511be1a9a16e491e177bf97e8') - -prepare(){ - patch -Np1 < "$srcdir/gotags.patch" -} - -build() { - export CGO_CPPFLAGS="${CPPFLAGS}" - export CGO_CFLAGS="${CFLAGS}" - export CGO_CXXFLAGS="${CXXFLAGS}" - export CGO_LDFLAGS="${LDFLAGS}" - make WHAT=cmd/kubectl GOFLAGS="-buildmode=pie -trimpath" - # we don't need this anymore, but let's keep it. - #cd cmd/kubectl - #go build -trimpath -ldflags "-extldflags ${LDFLAGS}" -o kubectl -} - -package() { - install -Dm755 _output/bin/kubectl -t "$pkgdir/usr/bin" - # man page generation still seems to fail with 1.17.2 :( - # install -Dm644 docs/man/man1/* -t "$pkgdir/usr/share/man/man1" - - "$pkgdir/usr/bin/kubectl" completion bash | install -Dm644 /dev/stdin "$pkgdir/usr/share/bash-completion/completions/kubectl" - "$pkgdir/usr/bin/kubectl" completion zsh | install -Dm644 /dev/stdin "$pkgdir/usr/share/zsh/site-functions/_kubectl" -} Copied: kubectl/repos/community-x86_64/PKGBUILD (from rev 701624, kubectl/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2020-09-09 17:19:46 UTC (rev 701625) @@ -0,0 +1,44 @@ +# Maintainer: Christian Rebischke <chris.rebisc...@archlinux.org> +# Contributor: Ivan Shapovalov <inte...@intelfx.name> +# Contributor: larte <lauri.a...@gmail.com> +# Contributor: Maxwell Pray a.k.a. Synthead <synth...@gmail.com> +# Contributor: gun1x <gunix@gunix.cloud> + +pkgname=kubectl +pkgdesc="Kubernetes.io client binary" +pkgver=1.18.6 +pkgrel=1 +arch=('x86_64') +url="https://kubernetes.io" +license=('Apache') +depends=('glibc') +makedepends=('go' 'rsync' 'git') +#source=("git+https://github.com/kubernetes/kubernetes#tag=v${pkgver}") +source=("kubernetes-$pkgver.tar.gz::https://dl.k8s.io/v$pkgver/kubernetes-src.tar.gz" + "gotags.patch") +sha512sums=('460551dcde2288a7f3b90ad0720cf479cd38d64e386fedf66d580c4cd547a0e1835437437bdfb8b28c6dd707164abf0ddf4ea761d9f110945b80800f71b953b0' + '413ddce3e475107db030a04d6ed53d145ead8d13d2d153c4cb6ce635643d7cc922cab90f528b7f8152b43f157c2c441759e6d48511be1a9a16e491e177bf97e8') + +prepare(){ + patch -Np1 < "$srcdir/gotags.patch" +} + +build() { + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + make WHAT=cmd/kubectl GOFLAGS="-buildmode=pie -trimpath" + # we don't need this anymore, but let's keep it. + #cd cmd/kubectl + #go build -trimpath -ldflags "-extldflags ${LDFLAGS}" -o kubectl +} + +package() { + install -Dm755 _output/bin/kubectl -t "$pkgdir/usr/bin" + # man page generation still seems to fail with 1.17.2 :( + # install -Dm644 docs/man/man1/* -t "$pkgdir/usr/share/man/man1" + + "$pkgdir/usr/bin/kubectl" completion bash | install -Dm644 /dev/stdin "$pkgdir/usr/share/bash-completion/completions/kubectl" + "$pkgdir/usr/bin/kubectl" completion zsh | install -Dm644 /dev/stdin "$pkgdir/usr/share/zsh/site-functions/_kubectl" +} Deleted: gotags.patch =================================================================== --- gotags.patch 2020-09-09 17:19:40 UTC (rev 701624) +++ gotags.patch 2020-09-09 17:19:46 UTC (rev 701625) @@ -1,13 +0,0 @@ -diff --git a/hack/lib/golang.sh b/hack/lib/golang.sh -index b646bbe2edf..89d0a5cdba1 100755 ---- a/hack/lib/golang.sh -+++ b/hack/lib/golang.sh -@@ -790,7 +790,7 @@ kube::golang::build_binaries() { - - # extract tags if any specified in GOFLAGS - # shellcheck disable=SC2001 -- gotags="selinux,$(echo "${GOFLAGS:-}" | sed -e 's|.*-tags=\([^-]*\).*|\1|')" -+ gotags="selinux $(echo "${GOFLAGS:-}" | sed -e 's|.*-tags=\([^-]*\).*|\1|')" - - local -a targets=() - local arg \ No newline at end of file Copied: kubectl/repos/community-x86_64/gotags.patch (from rev 701624, kubectl/trunk/gotags.patch) =================================================================== --- gotags.patch (rev 0) +++ gotags.patch 2020-09-09 17:19:46 UTC (rev 701625) @@ -0,0 +1,13 @@ +diff --git a/hack/lib/golang.sh b/hack/lib/golang.sh +index b646bbe2edf..89d0a5cdba1 100755 +--- a/hack/lib/golang.sh ++++ b/hack/lib/golang.sh +@@ -790,7 +790,7 @@ kube::golang::build_binaries() { + + # extract tags if any specified in GOFLAGS + # shellcheck disable=SC2001 +- gotags="selinux,$(echo "${GOFLAGS:-}" | sed -e 's|.*-tags=\([^-]*\).*|\1|')" ++ gotags="selinux $(echo "${GOFLAGS:-}" | sed -e 's|.*-tags=\([^-]*\).*|\1|')" + + local -a targets=() + local arg \ No newline at end of file