[arch-commits] Commit in kubectl-ingress-nginx/repos/community-x86_64 (2 files)

Christian Rebischke shibumi at gemini.archlinux.org
Mon Nov 8 01:27:49 UTC 2021


    Date: Monday, November 8, 2021 @ 01:27:49
  Author: shibumi
Revision: 1038767

archrelease: copy trunk to community-x86_64

Added:
  kubectl-ingress-nginx/repos/community-x86_64/PKGBUILD
    (from rev 1038766, kubectl-ingress-nginx/trunk/PKGBUILD)
Deleted:
  kubectl-ingress-nginx/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   81 +++++++++++++++++++++++++------------------------------------
 1 file changed, 34 insertions(+), 47 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-08 01:27:42 UTC (rev 1038766)
+++ PKGBUILD	2021-11-08 01:27:49 UTC (rev 1038767)
@@ -1,47 +0,0 @@
-# Maintainer: christian rebischke <chris.rebischke at archlinux.org>
-# Contributor: ml <ml at visu.li>
-pkgname=kubectl-ingress-nginx
-_pkgname=${pkgname#kubectl-}-controller
-_bin=kubectl-ingress_nginx
-pkgver=0.33.0
-pkgrel=2
-pkgdesc='kubectl plugin for managing NGINX Ingress Controller for Kubernetes'
-arch=('x86_64')
-url='https://github.com/kubernetes/ingress-nginx'
-license=('Apache')
-depends=('glibc')
-makedepends=('go' 'git')
-groups=('kubectl-plugins')
-source=("${url}/archive/controller-${pkgver}/${pkgname}-${pkgver}.tar.gz")
-sha256sums=('a7977350b60bee377c441082067bd58b1dbc1cede504f66069b35efa5d6ea817')
-
-prepare() {
-  cd "${_pkgname}-${pkgver}"
-  go mod download
-}
-
-build() {
-  local commit=
-  commit=$(bsdcat "${pkgname}-${pkgver}.tar.gz" | git get-tar-commit-id)
-
-  local -a x=(
-    COMMIT="${commit:?}"
-    RELEASE="controller-${pkgver}"
-    REPO="$url"
-  )
-  cd "${_pkgname}-${pkgver}"
-  # enforce CGO_ENABLED=1 so the build does not break for AUR users having CGO_ENABLED=0
-  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 -o "${_bin}" -ldflags "${x[*]/#/-X=k8s.io/ingress-nginx/version.}" ./cmd/plugin
-}
-
-package() {
-  cd "${_pkgname}-${pkgver}"
-  install -Dm755 ${_bin} -t "${pkgdir}/usr/bin"
-  install -Dm644 docs/kubectl-plugin.md -t "${pkgdir}/usr/share/doc/${pkgname}"
-}

Copied: kubectl-ingress-nginx/repos/community-x86_64/PKGBUILD (from rev 1038766, kubectl-ingress-nginx/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-11-08 01:27:49 UTC (rev 1038767)
@@ -0,0 +1,34 @@
+# Maintainer: christian rebischke <chris.rebischke at archlinux.org>
+# Contributor: ml <ml at visu.li>
+pkgname=kubectl-ingress-nginx
+_pkgname=${pkgname#kubectl-}-controller
+_bin=kubectl-ingress_nginx
+pkgver=1.0.4
+pkgrel=1
+pkgdesc='kubectl plugin for managing NGINX Ingress Controller for Kubernetes'
+arch=('x86_64')
+url='https://github.com/kubernetes/ingress-nginx'
+license=('Apache')
+depends=('glibc')
+makedepends=('go' 'git')
+groups=('kubectl-plugins')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/kubernetes/ingress-nginx/archive/refs/tags/controller-v${pkgver}.tar.gz")
+sha512sums=('65017d83df1640c5f97cbe7bc121a3581f98b60fb6f51415cc17bc8513df9d597057f7a3ed37c0623a3cb38536e55607fe75645d8a561583cfcbd2e7c06b1961')
+b2sums=('97f25eca3366bf3ea59957083a6538417fef5908c9f7a6b4f4c7d3161a304591f09970509f2bf49023c87ff225a2c7aa4f5d4930641ec78b954d5914616e250e')
+
+build() {
+  cd "${_pkgname}-v${pkgver}"
+
+  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 -o "${_bin}" -ldflags "-w -s -linkmode=external" ./cmd/plugin
+}
+
+package() {
+  cd "${_pkgname}-v${pkgver}"
+  install -Dm755 ${_bin} -t "${pkgdir}/usr/bin"
+  install -Dm644 docs/kubectl-plugin.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+}



More information about the arch-commits mailing list