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

Christian Rebischke shibumi at gemini.archlinux.org
Mon Nov 22 01:42:08 UTC 2021


    Date: Monday, November 22, 2021 @ 01:42:08
  Author: shibumi
Revision: 1054163

archrelease: copy trunk to community-x86_64

Added:
  operator-sdk/repos/community-x86_64/PKGBUILD
    (from rev 1054162, operator-sdk/trunk/PKGBUILD)
Deleted:
  operator-sdk/repos/community-x86_64/PKGBUILD

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-22 01:42:02 UTC (rev 1054162)
+++ PKGBUILD	2021-11-22 01:42:08 UTC (rev 1054163)
@@ -1,44 +0,0 @@
-# Maintainer: Christian Rebischke <chris.rebischke at archlinux.org>
-
-pkgname=operator-sdk
-pkgver=1.15.0
-pkgrel=1
-pkgdesc="SDK for building Kubernetes applications"
-arch=('x86_64')
-url="https://github.com/operator-framework/operator-sdk"
-license=('Apache')
-makedepends=('go')
-depends=('glibc')
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/operator-framework/operator-sdk/archive/v${pkgver}.tar.gz")
-sha512sums=('43626938efa3c03eb6d798f4f6cc3deb59c8f7c62e60b88e63a2f7db98ce832889029898d9f007ee6560ae321c8f0e9a604ab08e09789c4e39492f222dcdf8f4')
-b2sums=('c72b554eaa7e163833be9b068f262a51302842d4eac3c99acbac83ec4565a6938ae4de3481bdddaf7e464425025f6605ff61db6dee985bdac40580a308e4dc2b')
-
-prepare() {
-  export GOPATH="${srcdir}"
-  mkdir -p src/github.com/operator-framework "${GOPATH}/bin"
-  mv "${pkgname}-${pkgver}" "src/github.com/operator-framework/${pkgname}"
-  export PACKAGE_ROOT="${GOPATH}/src/github.com/operator-framework/${pkgname}"
-}
-
-build() {
-  cd "${PACKAGE_ROOT}"
-  export CGO_ENABLED=1
-  export CGO_CPPFLAGS="${CPPFLAGS}"
-  export CGO_CFLAGS="${CFLAGS}"
-  export CGO_CXXFLAGS="${CXXFLAGS}"
-  export CGO_LDFLAGS="${LDFLAGS}"
-  export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
-  go build -ldflags "-linkmode=external" -v -o . ./cmd/{operator-sdk,ansible-operator,helm-operator}
-}
-
-#check() {
-#  cd "${PACKAGE_ROOT}"
-#  go test -v ./...
-#}
-
-package() {
-  cd "${PACKAGE_ROOT}"
-  install -Dsm755 ./operator-sdk "${pkgdir}/usr/bin/operator-sdk"
-  install -Dsm755 ./ansible-operator "${pkgdir}/usr/bin/ansible-operator"
-  install -Dsm755 ./helm-operator "${pkgdir}/usr/bin/helm-operator"
-}

Copied: operator-sdk/repos/community-x86_64/PKGBUILD (from rev 1054162, operator-sdk/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-11-22 01:42:08 UTC (rev 1054163)
@@ -0,0 +1,50 @@
+# Maintainer: Christian Rebischke <chris.rebischke at archlinux.org>
+
+pkgname=operator-sdk
+pkgver=1.15.0
+pkgrel=2
+pkgdesc="SDK for building Kubernetes applications"
+arch=('x86_64')
+url="https://github.com/operator-framework/operator-sdk"
+license=('Apache')
+makedepends=('go')
+depends=('glibc')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/operator-framework/operator-sdk/archive/v${pkgver}.tar.gz")
+sha512sums=('43626938efa3c03eb6d798f4f6cc3deb59c8f7c62e60b88e63a2f7db98ce832889029898d9f007ee6560ae321c8f0e9a604ab08e09789c4e39492f222dcdf8f4')
+b2sums=('c72b554eaa7e163833be9b068f262a51302842d4eac3c99acbac83ec4565a6938ae4de3481bdddaf7e464425025f6605ff61db6dee985bdac40580a308e4dc2b')
+
+prepare() {
+  export GOPATH="${srcdir}"
+  mkdir -p src/github.com/operator-framework "${GOPATH}/bin"
+  mv "${pkgname}-${pkgver}" "src/github.com/operator-framework/${pkgname}"
+  export PACKAGE_ROOT="${GOPATH}/src/github.com/operator-framework/${pkgname}"
+}
+
+build() {
+  cd "${PACKAGE_ROOT}"
+  export CGO_ENABLED=1
+  export CGO_CPPFLAGS="${CPPFLAGS}"
+  export CGO_CFLAGS="${CFLAGS}"
+  export CGO_CXXFLAGS="${CXXFLAGS}"
+  export CGO_LDFLAGS="${LDFLAGS}"
+  export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
+  go build -ldflags "-linkmode=external" -v -o . ./cmd/{operator-sdk,ansible-operator,helm-operator}
+}
+
+#check() {
+#  cd "${PACKAGE_ROOT}"
+#  go test -v ./...
+#}
+
+package() {
+  cd "${PACKAGE_ROOT}"
+  install -Dsm755 ./operator-sdk "${pkgdir}/usr/bin/operator-sdk"
+  ./operator-sdk completion bash | install -Dm644 /dev/stdin "$pkgdir/usr/share/bash-completion/completions/operator-sdk"
+  ./operator-sdk completion zsh | install -Dm644 /dev/stdin "$pkgdir/usr/share/zsh/site-functions/_operator-sdk"
+  install -Dsm755 ./ansible-operator "${pkgdir}/usr/bin/ansible-operator"
+  ./ansible-operator completion bash | install -Dm644 /dev/stdin "$pkgdir/usr/share/bash-completion/completions/ansible-operator"
+  ./ansible-operator completion zsh | install -Dm644 /dev/stdin "$pkgdir/usr/share/zsh/site-functions/_ansible-operator"
+  install -Dsm755 ./helm-operator "${pkgdir}/usr/bin/helm-operator"
+  ./helm-operator completion bash | install -Dm644 /dev/stdin "$pkgdir/usr/share/bash-completion/completions/helm-operator"
+  ./helm-operator completion zsh | install -Dm644 /dev/stdin "$pkgdir/usr/share/zsh/site-functions/_helm-operator"
+}



More information about the arch-commits mailing list