diff options
author | Yigit Sever | 2022-12-22 20:11:14 +0300 |
---|---|---|
committer | Yigit Sever | 2022-12-22 20:11:14 +0300 |
commit | b7e000a168965166c8cbefbabcab5158491671ac (patch) | |
tree | c48ba796a4c0efbe07e069c00738d439069dbc86 /helmsman | |
parent | 046962cfef122e4dee11fcf46f7c5102ea2eafca (diff) | |
parent | 4e60cc6c00a83f75c3ddc4b7d97a80069035f200 (diff) | |
download | packages-b7e000a168965166c8cbefbabcab5158491671ac.tar.gz packages-b7e000a168965166c8cbefbabcab5158491671ac.tar.bz2 packages-b7e000a168965166c8cbefbabcab5158491671ac.zip |
Add 'helmsman/' from commit '4e60cc6c00a83f75c3ddc4b7d97a80069035f200'
git-subtree-dir: helmsman
git-subtree-mainline: 046962cfef122e4dee11fcf46f7c5102ea2eafca
git-subtree-split: 4e60cc6c00a83f75c3ddc4b7d97a80069035f200
Diffstat (limited to 'helmsman')
-rw-r--r-- | helmsman/.SRCINFO | 18 | ||||
-rw-r--r-- | helmsman/.gitignore | 6 | ||||
-rw-r--r-- | helmsman/PKGBUILD | 45 |
3 files changed, 69 insertions, 0 deletions
diff --git a/helmsman/.SRCINFO b/helmsman/.SRCINFO new file mode 100644 index 0000000..afe4a0d --- /dev/null +++ b/helmsman/.SRCINFO | |||
@@ -0,0 +1,18 @@ | |||
1 | pkgbase = helmsman | ||
2 | pkgdesc = Helm Charts as Code | ||
3 | pkgver = 3.6.3 | ||
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-diff | ||
11 | depends = kubectl | ||
12 | optdepends = ruby-hiera-eyaml: backend for secret encryption | ||
13 | optdepends = helm-secrets: backend for secret encryption | ||
14 | source = https://github.com/Praqma/helmsman/archive/v3.6.3/helmsman-3.6.3.tar.gz | ||
15 | sha256sums = 05ce86066028ed0fbb99902018953107432727abe297745de4013815b5bf6781 | ||
16 | |||
17 | pkgname = helmsman | ||
18 | |||
diff --git a/helmsman/.gitignore b/helmsman/.gitignore new file mode 100644 index 0000000..f1ecb61 --- /dev/null +++ b/helmsman/.gitignore | |||
@@ -0,0 +1,6 @@ | |||
1 | /pkg/ | ||
2 | /src/ | ||
3 | /*.log | ||
4 | /*.tar.gz | ||
5 | /*.pkg.tar* | ||
6 | /*.src.tar* | ||
diff --git a/helmsman/PKGBUILD b/helmsman/PKGBUILD new file mode 100644 index 0000000..048e58a --- /dev/null +++ b/helmsman/PKGBUILD | |||
@@ -0,0 +1,45 @@ | |||
1 | # Maintainer: ml <ml@visu.li> | ||
2 | # to build in clean chroot build helm-diff from AUR, then pass to build cmd: | ||
3 | # $ extra-x86_64-build -- -I helm-diff-3.1.3-2-x86_64.pkg.tar.zst | ||
4 | pkgname=helmsman | ||
5 | pkgver=3.6.3 | ||
6 | pkgrel=1 | ||
7 | pkgdesc='Helm Charts as Code' | ||
8 | arch=('x86_64' 'i686') | ||
9 | url='https://github.com/Praqma/helmsman' | ||
10 | license=('MIT') | ||
11 | depends=('helm-diff' 'kubectl') | ||
12 | optdepends=( | ||
13 | 'ruby-hiera-eyaml: backend for secret encryption' | ||
14 | 'helm-secrets: backend for secret encryption') | ||
15 | makedepends=('go') | ||
16 | source=("$url/archive/v$pkgver/$pkgname-$pkgver.tar.gz") | ||
17 | sha256sums=('05ce86066028ed0fbb99902018953107432727abe297745de4013815b5bf6781') | ||
18 | |||
19 | build() { | ||
20 | cd "$pkgname-$pkgver" | ||
21 | export CGO_ENABLED=1 | ||
22 | export CGO_LDFLAGS="$LDFLAGS" | ||
23 | export CGO_CFLAGS="$CFLAGS" | ||
24 | export CGO_CPPFLAGS="$CPPFLAGS" | ||
25 | export CGO_CXXFLAGS="$CXXFLAGS" | ||
26 | export GOFLAGS='-buildmode=pie -modcacherw -mod=readonly -trimpath' | ||
27 | # man makepkg(8), https://github.com/Praqma/helmsman/blob/master/Makefile | ||
28 | TZ=UTC printf -v _date '%(%d%m%y)T' "${SOURCE_DATE_EPOCH:- -1}" | ||
29 | go build -ldflags "-linkmode=external -X main.version=v$pkgver-$_date" ./cmd/helmsman | ||
30 | } | ||
31 | |||
32 | check() { | ||
33 | cd "$pkgname-$pkgver" | ||
34 | go test -short ./... | ||
35 | } | ||
36 | |||
37 | package() { | ||
38 | cd "$pkgname-$pkgver" | ||
39 | install -Dm755 "$pkgname" -t "$pkgdir/usr/bin" | ||
40 | install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname" | ||
41 | |||
42 | # README, docs and examples | ||
43 | install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname" | ||
44 | cp -a docs examples -t "$pkgdir/usr/share/doc/$pkgname" | ||
45 | } | ||