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

Christian Rebischke shibumi at archlinux.org
Mon Oct 19 09:01:02 UTC 2020


    Date: Monday, October 19, 2020 @ 09:01:01
  Author: shibumi
Revision: 726971

archrelease: copy trunk to community-x86_64

Added:
  helmfile/repos/community-x86_64/
  helmfile/repos/community-x86_64/PKGBUILD
    (from rev 726970, helmfile/trunk/PKGBUILD)

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

Copied: helmfile/repos/community-x86_64/PKGBUILD (from rev 726970, helmfile/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2020-10-19 09:01:01 UTC (rev 726971)
@@ -0,0 +1,43 @@
+# Maintainer: Christian Rebischke <chris.rebischke at archlinux.org>
+
+pkgname=helmfile
+pkgver=0.132.0
+pkgrel=1
+pkgdesc="Manage multiple helm charts with a single helmfile"
+arch=('x86_64')
+url="https://github.com/roboll/helmfile"
+license=('MIT')
+makedepends=('go')
+depends=('glibc')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/roboll/helmfile/archive/v${pkgver}.tar.gz")
+sha512sums=('b807608b418610539ff0f7dd8e50927b19420328292fe4d1b9f6994ee6a18337d8496493987c5b1885a53673cd9bff5ab5f495d7b7a20283d96756ff420fe255')
+
+prepare() {
+  export GOPATH="${srcdir}"
+  mkdir -p src/github.com/roboll "${GOPATH}/bin"
+  mv "${pkgname}-${pkgver}" "src/github.com/roboll/${pkgname}"
+  export PACKAGE_ROOT="${GOPATH}/src/github.com/roboll/${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"
+  export GOLDFLAGS="-linkmode=external"
+  go build -v .
+  chmod +x ./helmfile
+}
+
+check() {
+  cd "${PACKAGE_ROOT}"
+  go test -v ./...
+}
+
+package() {
+  cd "${PACKAGE_ROOT}"
+  install -Dsm755 ./helmfile "${pkgdir}/usr/bin/helmfile"
+}



More information about the arch-commits mailing list