blob: d6c394785482603998494a8b0cc98e2c44ef2d42 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Maintainer: Mario Finelli <mario at finel dot li>
# Contributor: ml <>
pkgname=helm-secrets
pkgver=4.7.10
pkgrel=1
pkgdesc="Helm plugin to manage secrets with Git workflow and store them anywhere"
arch=(any)
url=https://github.com/jkroepke/helm-secrets
license=(Apache-2.0)
install=helm-secrets.install
depends=(bash helm)
optdepends=(
'sops: secret driver'
'vault: secret driver'
)
source=(https://github.com/jkroepke/helm-secrets/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
sha256sums=('6ab2552f45e1c7dbcd1e06bc916955a617f35f66955511e39f741ede7bebb48d')
package() {
cd "${pkgname}-${pkgver}"
local _dest="${pkgdir}/usr/lib/helm/plugins/${pkgname##helm-}"
# helm 4 requires multiple plugins for multiple capabilities so install
# each one individually... note the scripts are shared amongst all plugins
# same as upstream repo (plugins/*/scripts is a symlink)
# https://github.com/jkroepke/helm-secrets/wiki/Installation
for plugin in cli getter post-renderer; do
install -Dvm0644 plugins/${pkgname}-${plugin}/plugin.yaml \
-t "${_dest}-${plugin}"
cp -avr scripts/ -t "${_dest}-${plugin}"
done
install -Dvm0644 docs/*.md -t "$pkgdir/usr/share/doc/$pkgname/"
# NB after the above because there is an empty README.md in the docs/ folder
install -Dvm0644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
install -Dvm0644 CHANGELOG.md "$pkgdir/usr/share/doc/$pkgname/CHANGELOG.md"
}
# vim: set ts=2 sw=2 et:
|