[arch-commits] Commit in kubectl-cert-manager/repos (2 files)

Christian Rebischke shibumi at archlinux.org
Sun Feb 21 19:14:56 UTC 2021


    Date: Sunday, February 21, 2021 @ 19:14:55
  Author: shibumi
Revision: 867853

archrelease: copy trunk to community-x86_64

Added:
  kubectl-cert-manager/repos/community-x86_64/
  kubectl-cert-manager/repos/community-x86_64/PKGBUILD
    (from rev 867852, kubectl-cert-manager/trunk/PKGBUILD)

----------+
 PKGBUILD |   44 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

Copied: kubectl-cert-manager/repos/community-x86_64/PKGBUILD (from rev 867852, kubectl-cert-manager/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2021-02-21 19:14:55 UTC (rev 867853)
@@ -0,0 +1,44 @@
+# Maintainer: Christian Rebischke <chris.rebischke at archlinux.org>
+# Contributor: ml <>
+pkgname=kubectl-cert-manager
+pkgver=1.2.0
+pkgrel=2
+pkgdesc='Automatically provision and manage TLS certificates in Kubernetes'
+arch=('x86_64' 'aarch64')
+url='https://github.com/jetstack/cert-manager'
+license=('Apache')
+depends=('kubectl')
+makedepends=('git' 'go')
+groups=('kubectl-plugins')
+source=("$url/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('e786fbe7eeb553f5604945ddc1cafa03dd817003bd7a0697a2e7e77d9873efd7d5bff9085ae2135115cec78531505b432e39fbc9dc3cbb4b5221966f2172e9fb')
+
+build() {
+  local _x _commit
+  _commit=$(bsdcat "$pkgname-$pkgver.tar.gz" | git get-tar-commit-id)
+  _x=(
+    AppVersion="v$pkgver"
+    AppGitCommit="${_commit:?}"
+    AppGitState="clean"
+  )
+
+  cd cert-manager-"$pkgver"
+  export CGO_ENABLED=1
+  export CGO_LDFLAGS="$LDFLAGS"
+  export CGO_CFLAGS="$CFLAGS"
+  export CGO_CPPFLAGS="$CPPFLAGS"
+  export CGO_CXXFLAGS="$CXXFLAGS"
+  export GOFLAGS='-buildmode=pie -trimpath -modcacherw -mod=readonly'
+  go build -ldflags="-linkmode=external ${_x[*]/#/-X=github.com/jetstack/cert-manager/pkg/util.}" ./cmd/ctl
+}
+
+check() {
+  cd cert-manager-"$pkgver"
+  # we don't want e2e and other tests that explicitly want bazel
+  go test -short ./cmd/ctl/...
+}
+
+package() {
+  cd cert-manager-"$pkgver"
+  install -Dm755 ctl "$pkgdir"/usr/bin/kubectl-cert-manager
+}



More information about the arch-commits mailing list