[arch-commits] Commit in kustomize/trunk (PKGBUILD)
Daurnimator
daurnimator at archlinux.org
Sun Jun 21 15:04:32 UTC 2020
Date: Sunday, June 21, 2020 @ 15:04:30
Author: daurnimator
Revision: 649403
upgpkg: kustomize 3.6.1-1: update to 3.6.1; use new go packaging guidelines
Modified:
kustomize/trunk/PKGBUILD
----------+
PKGBUILD | 39 ++++++++++++++++++++++++++-------------
1 file changed, 26 insertions(+), 13 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-06-21 14:59:21 UTC (rev 649402)
+++ PKGBUILD 2020-06-21 15:04:30 UTC (rev 649403)
@@ -1,32 +1,45 @@
# Maintainer: Christian Rebischke <chris.rebischke at archlinux.org>
+# Maintainer: Daurnimator <daurnimator at archlinux.org>
pkgname=kustomize
-pkgver=3.5.4
+pkgver=3.6.1
pkgrel=1
-_kustomize_commit=3af514fa9f85430f0c1557c4a0291e62112ab026
pkgdesc="Template-free customization of Kubernetes YAML manifests"
arch=('x86_64')
url="https://github.com/kubernetes-sigs/kustomize"
license=('Apache')
-makedepends=('go-pie' 'git')
+makedepends=('go')
depends=('glibc')
-source=("git+https://github.com/kubernetes-sigs/kustomize#commit=${_kustomize_commit}")
-sha512sums=('SKIP')
+source=("kustomize-${pkgver}.tar.gz::https://github.com/kubernetes-sigs/kustomize/archive/kustomize/v${pkgver}.tar.gz")
+sha512sums=('f21130a1d425998e7be36882e21e951783f876164fd4c0e119d0cccd761591fced66cf0b841593503f1f594c604b3a5fe2bf1dfbed33ba98228b71d683c9ca93')
build(){
- cd "${pkgname}/${pkgname}"
- go build \
- -trimpath \
- -ldflags "-extldflags ${LDFLAGS}" .
- chmod +x ./kustomize
+ cd "kustomize-kustomize-v${pkgver}/kustomize"
+
+ export CGO_LDFLAGS="${LDFLAGS}"
+ export CGO_CFLAGS="${CFLAGS}"
+ export CGO_CPPFLAGS="${CPPFLAGS}"
+ export CGO_CXXFLAGS="${CXXFLAGS}"
+ go build \
+ -trimpath \
+ -buildmode=pie \
+ -mod=readonly \
+ -modcacherw \
+ -ldflags " \
+ -X sigs.k8s.io/kustomize/api/provenance.version=${pkgver} \
+ -X sigs.k8s.io/kustomize/api/provenance.buildDate=$(date -u +'%Y-%m-%dT%H:%M:%SZ' --date=@${SOURCE_DATE_EPOCH}) \
+ -extldflags ${LDFLAGS}" \
+ .
}
check(){
- cd "${pkgname}/${pkgname}"
+ cd "kustomize-kustomize-v${pkgver}/kustomize"
+
go test ./...
}
package(){
- cd "${pkgname}/${pkgname}"
- install -Dsm755 ./kustomize "${pkgdir}/usr/bin/kustomize"
+ cd "kustomize-kustomize-v${pkgver}/kustomize"
+
+ install -D kustomize "${pkgdir}/usr/bin/kustomize"
}
More information about the arch-commits
mailing list