From dff6f59f0e8a0f8a0616068593e319d40d24efb4 Mon Sep 17 00:00:00 2001 From: Matthias Lisin Date: Mon, 6 Apr 2020 23:23:23 +0200 Subject: newpkg: helmsman 3.2.0-1 --- .SRCINFO | 17 +++++++++++++++++ .gitignore | 5 +++++ PKGBUILD | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 56 insertions(+) create mode 100644 .SRCINFO create mode 100644 .gitignore create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..989547f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = helmsman + pkgdesc = Helm Charts as Code + pkgver = 3.2.0 + pkgrel = 1 + url = https://github.com/Praqma/helmsman + arch = x86_64 + arch = i686 + license = MIT + makedepends = go + depends = helm + depends = kubectl + optdepends = ruby-hiera-eyaml: backend for secret encryption + source = helmsman-3.2.0.tar.gz::https://github.com/Praqma/helmsman/archive/v3.2.0.tar.gz + sha256sums = 66fee9d212a78c918d5d31b3f0f4a5217fdf81995c68724a253d1d356d41efa3 + +pkgname = helmsman + diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..37e29d6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +/pkg/ +/src/ +/*.log +/helmsman-*.tar.gz +/helmsman-*.pkg.tar* diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..f22ffb0 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: ml +pkgname=helmsman +pkgver=3.2.0 +pkgrel=1 +pkgdesc='Helm Charts as Code' +arch=('x86_64' 'i686') +url='https://github.com/Praqma/helmsman' +license=('MIT') +depends=('helm' 'kubectl') +optdepends=('ruby-hiera-eyaml: backend for secret encryption') +makedepends=('go') +source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz") +sha256sums=('66fee9d212a78c918d5d31b3f0f4a5217fdf81995c68724a253d1d356d41efa3') + +build() { + cd "${pkgname}-${pkgver}" + export CGO_LDFLAGS="$LDFLAGS" + export GOFLAGS='-buildmode=pie -modcacherw -trimpath' + # https://github.com/Praqma/helmsman/blob/master/Makefile + # man makepkg(8) + _date=$(date --utc --date="@${SOURCE_DATE_EPOCH}" +'%d%m%y') + go build -o "$pkgname" -ldflags "-X main.version=v${pkgver}-${_date}" ./cmd/helmsman +} + +check() { + cd "${pkgname}-${pkgver}" + go test ./... +} + +package() { + cd "${pkgname}-${pkgver}" + install -Dm755 "$pkgname" -t "${pkgdir}/usr/bin" + install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" +} -- cgit v1.2.3-70-g09d2