diff options
author | Matthias Lisin | 2020-04-06 23:23:23 +0200 |
---|---|---|
committer | Matthias Lisin | 2020-04-06 23:23:23 +0200 |
commit | dff6f59f0e8a0f8a0616068593e319d40d24efb4 (patch) | |
tree | 70742010700eca01e821b7edf113f1c90bfe3e95 | |
download | packages-dff6f59f0e8a0f8a0616068593e319d40d24efb4.tar.gz packages-dff6f59f0e8a0f8a0616068593e319d40d24efb4.tar.bz2 packages-dff6f59f0e8a0f8a0616068593e319d40d24efb4.zip |
newpkg: helmsman 3.2.0-1
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 34 |
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 @@ | |||
1 | pkgbase = 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 | |||
16 | pkgname = 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> | ||
2 | pkgname=helmsman | ||
3 | pkgver=3.2.0 | ||
4 | pkgrel=1 | ||
5 | pkgdesc='Helm Charts as Code' | ||
6 | arch=('x86_64' 'i686') | ||
7 | url='https://github.com/Praqma/helmsman' | ||
8 | license=('MIT') | ||
9 | depends=('helm' 'kubectl') | ||
10 | optdepends=('ruby-hiera-eyaml: backend for secret encryption') | ||
11 | makedepends=('go') | ||
12 | source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz") | ||
13 | sha256sums=('66fee9d212a78c918d5d31b3f0f4a5217fdf81995c68724a253d1d356d41efa3') | ||
14 | |||
15 | build() { | ||
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 | |||
25 | check() { | ||
26 | cd "${pkgname}-${pkgver}" | ||
27 | go test ./... | ||
28 | } | ||
29 | |||
30 | package() { | ||
31 | cd "${pkgname}-${pkgver}" | ||
32 | install -Dm755 "$pkgname" -t "${pkgdir}/usr/bin" | ||
33 | install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" | ||
34 | } | ||