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

Daurnimator daurnimator at archlinux.org
Sun Jun 21 15:05:06 UTC 2020


    Date: Sunday, June 21, 2020 @ 15:05:04
  Author: daurnimator
Revision: 649405

archrelease: copy trunk to community-x86_64

Added:
  kustomize/repos/community-x86_64/PKGBUILD
    (from rev 649403, kustomize/trunk/PKGBUILD)
Deleted:
  kustomize/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   77 +++++++++++++++++++++++++++++++++++--------------------------
 1 file changed, 45 insertions(+), 32 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-06-21 15:04:56 UTC (rev 649404)
+++ PKGBUILD	2020-06-21 15:05:04 UTC (rev 649405)
@@ -1,32 +0,0 @@
-# Maintainer: Christian Rebischke <chris.rebischke at archlinux.org>
-
-pkgname=kustomize
-pkgver=3.5.4
-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')
-depends=('glibc')
-source=("git+https://github.com/kubernetes-sigs/kustomize#commit=${_kustomize_commit}")
-sha512sums=('SKIP')
-
-build(){
-  cd "${pkgname}/${pkgname}"
-  go build  \
-  -trimpath \
-  -ldflags "-extldflags ${LDFLAGS}" .
-  chmod +x ./kustomize
-}
-
-check(){
-  cd "${pkgname}/${pkgname}"
-  go test ./...
-}
-
-package(){
-  cd "${pkgname}/${pkgname}"
-  install -Dsm755 ./kustomize "${pkgdir}/usr/bin/kustomize"
-}

Copied: kustomize/repos/community-x86_64/PKGBUILD (from rev 649403, kustomize/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-06-21 15:05:04 UTC (rev 649405)
@@ -0,0 +1,45 @@
+# Maintainer: Christian Rebischke <chris.rebischke at archlinux.org>
+# Maintainer: Daurnimator <daurnimator at archlinux.org>
+
+pkgname=kustomize
+pkgver=3.6.1
+pkgrel=1
+pkgdesc="Template-free customization of Kubernetes YAML manifests"
+arch=('x86_64')
+url="https://github.com/kubernetes-sigs/kustomize"
+license=('Apache')
+makedepends=('go')
+depends=('glibc')
+source=("kustomize-${pkgver}.tar.gz::https://github.com/kubernetes-sigs/kustomize/archive/kustomize/v${pkgver}.tar.gz")
+sha512sums=('f21130a1d425998e7be36882e21e951783f876164fd4c0e119d0cccd761591fced66cf0b841593503f1f594c604b3a5fe2bf1dfbed33ba98228b71d683c9ca93')
+
+build(){
+  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 "kustomize-kustomize-v${pkgver}/kustomize"
+
+  go test ./...
+}
+
+package(){
+  cd "kustomize-kustomize-v${pkgver}/kustomize"
+
+  install -D kustomize "${pkgdir}/usr/bin/kustomize"
+}



More information about the arch-commits mailing list