summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorml2020-03-21 21:18:41 +0100
committerml2020-03-21 21:18:41 +0100
commit4f423c25a5924294bd34cdf8687f2fc4b0b11655 (patch)
tree808900ddd96480026df1afa7f6c8ef68a6e1de67
parentd707c13b367c42e87edc3762d583809fc5ce4a48 (diff)
downloadaur-4f423c25a5924294bd34cdf8687f2fc4b0b11655.tar.gz
upgpkg: kind 0.7.0-2
build: drop unused -X define from -ldflags depends: remove 'glibc' makedepends: remove 'gzip'
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD15
2 files changed, 9 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ffded7fdae3..c7ad8772e59 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = kind
pkgdesc = Kubernetes IN Docker - local clusters for testing Kubernetes
pkgver = 0.7.0
- pkgrel = 1
+ pkgrel = 2
url = https://kind.sigs.k8s.io/
arch = x86_64
arch = aarch64
@@ -10,9 +10,7 @@ pkgbase = kind
arch = armv7h
license = Apache
makedepends = go
- makedepends = gzip
depends = docker
- depends = glibc
optdepends = kubectl: for managing Kubernetes clusters
source = kind-0.7.0.tar.gz::https://github.com/kubernetes-sigs/kind/archive/v0.7.0.tar.gz
sha256sums = d2d4f98596b68c449be95a31e9680fbf7ff3503a28a0943f1997eba50de208f9
diff --git a/PKGBUILD b/PKGBUILD
index 9d747884f8a..0b142df7024 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,24 +1,25 @@
# Maintainer: ml <ml@visu.li>
pkgname=kind
pkgver=0.7.0
-pkgrel=1
+pkgrel=2
pkgdesc='Kubernetes IN Docker - local clusters for testing Kubernetes'
arch=('x86_64' 'aarch64' 'arm' 'armv6h' 'armv7h')
url='https://kind.sigs.k8s.io/'
license=('Apache')
-depends=('docker' 'glibc')
-makedepends=('go' 'gzip')
+depends=('docker')
+makedepends=('go')
optdepends=('kubectl: for managing Kubernetes clusters')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/kubernetes-sigs/kind/archive/v${pkgver}.tar.gz")
sha256sums=('d2d4f98596b68c449be95a31e9680fbf7ff3503a28a0943f1997eba50de208f9')
build() {
+ # version.GitCommit is ignored for tagged releases
+ # _commit="$(zcat "${srcdir}/${pkgname}-${pkgver}.tar.gz" | git get-tar-commit-id)"
+ # -ldflags "-X sigs.k8s.io/kind/pkg/cmd/kind/version.GitCommit=${_commit}"
+ cd "${pkgname}-${pkgver}"
export CGO_LDFLAGS="$LDFLAGS"
export GOFLAGS='-buildmode=pie -trimpath -modcacherw'
- local commit="$(zcat "${pkgname}-${pkgver}.tar.gz" | git get-tar-commit-id)"
- cd "${pkgname}-${pkgver}"
- # version.GitCommit is ignored for tagged releases, keeping it just in case this changes
- go build -o "$pkgname" -ldflags "-X sigs.k8s.io/kind/pkg/cmd/kind/version.GitCommit=${commit}"
+ go build -o "$pkgname"
}
check() {