[arch-commits] Commit in (4 files)

Christian Rebischke shibumi at archlinux.org
Mon Oct 19 08:57:12 UTC 2020


    Date: Monday, October 19, 2020 @ 08:57:11
  Author: shibumi
Revision: 726969

add helmfile

Added:
  helmfile/
  helmfile/repos/
  helmfile/trunk/
  helmfile/trunk/PKGBUILD

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

Added: helmfile/trunk/PKGBUILD
===================================================================
--- helmfile/trunk/PKGBUILD	                        (rev 0)
+++ helmfile/trunk/PKGBUILD	2020-10-19 08:57:11 UTC (rev 726969)
@@ -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=('96a6a6335d1846c945410b9a7c2e580f736ac2f9730a68f59cdce8f699a7e83910ba21116de8a9640d550c03c7156d684457421597d0d9bcd63067e6cbb03e81')
+
+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