summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Lisin2020-04-06 23:23:23 +0200
committerMatthias Lisin2020-04-06 23:23:23 +0200
commitdff6f59f0e8a0f8a0616068593e319d40d24efb4 (patch)
tree70742010700eca01e821b7edf113f1c90bfe3e95
downloadpackages-dff6f59f0e8a0f8a0616068593e319d40d24efb4.tar.gz
packages-dff6f59f0e8a0f8a0616068593e319d40d24efb4.tar.bz2
packages-dff6f59f0e8a0f8a0616068593e319d40d24efb4.zip
newpkg: helmsman 3.2.0-1
-rw-r--r--.SRCINFO17
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD34
3 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 0000000..989547f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
1pkgbase = helmsman
2 pkgdesc = Helm Charts as Code
3 pkgver = 3.2.0
4 pkgrel = 1
5 url = https://github.com/Praqma/helmsman
6 arch = x86_64
7 arch = i686
8 license = MIT
9 makedepends = go
10 depends = helm
11 depends = kubectl
12 optdepends = ruby-hiera-eyaml: backend for secret encryption
13 source = helmsman-3.2.0.tar.gz::https://github.com/Praqma/helmsman/archive/v3.2.0.tar.gz
14 sha256sums = 66fee9d212a78c918d5d31b3f0f4a5217fdf81995c68724a253d1d356d41efa3
15
16pkgname = helmsman
17
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..37e29d6
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
1/pkg/
2/src/
3/*.log
4/helmsman-*.tar.gz
5/helmsman-*.pkg.tar*
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 0000000..f22ffb0
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
1# Maintainer: ml <ml@visu.li>
2pkgname=helmsman
3pkgver=3.2.0
4pkgrel=1
5pkgdesc='Helm Charts as Code'
6arch=('x86_64' 'i686')
7url='https://github.com/Praqma/helmsman'
8license=('MIT')
9depends=('helm' 'kubectl')
10optdepends=('ruby-hiera-eyaml: backend for secret encryption')
11makedepends=('go')
12source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
13sha256sums=('66fee9d212a78c918d5d31b3f0f4a5217fdf81995c68724a253d1d356d41efa3')
14
15build() {
16 cd "${pkgname}-${pkgver}"
17 export CGO_LDFLAGS="$LDFLAGS"
18 export GOFLAGS='-buildmode=pie -modcacherw -trimpath'
19 # https://github.com/Praqma/helmsman/blob/master/Makefile
20 # man makepkg(8)
21 _date=$(date --utc --date="@${SOURCE_DATE_EPOCH}" +'%d%m%y')
22 go build -o "$pkgname" -ldflags "-X main.version=v${pkgver}-${_date}" ./cmd/helmsman
23}
24
25check() {
26 cd "${pkgname}-${pkgver}"
27 go test ./...
28}
29
30package() {
31 cd "${pkgname}-${pkgver}"
32 install -Dm755 "$pkgname" -t "${pkgdir}/usr/bin"
33 install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
34}