diff options
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 11 |
2 files changed, 9 insertions, 6 deletions
@@ -1,13 +1,13 @@ | |||
1 | pkgbase = helmsman | 1 | pkgbase = helmsman |
2 | pkgdesc = Helm Charts as Code | 2 | pkgdesc = Helm Charts as Code |
3 | pkgver = 3.3.0 | 3 | pkgver = 3.3.0 |
4 | pkgrel = 1 | 4 | pkgrel = 2 |
5 | url = https://github.com/Praqma/helmsman | 5 | url = https://github.com/Praqma/helmsman |
6 | arch = x86_64 | 6 | arch = x86_64 |
7 | arch = i686 | 7 | arch = i686 |
8 | license = MIT | 8 | license = MIT |
9 | makedepends = go | 9 | makedepends = go |
10 | depends = helm | 10 | depends = helm-diff |
11 | depends = kubectl | 11 | depends = kubectl |
12 | optdepends = ruby-hiera-eyaml: backend for secret encryption | 12 | optdepends = ruby-hiera-eyaml: backend for secret encryption |
13 | source = helmsman-3.3.0.tar.gz::https://github.com/Praqma/helmsman/archive/v3.3.0.tar.gz | 13 | source = helmsman-3.3.0.tar.gz::https://github.com/Praqma/helmsman/archive/v3.3.0.tar.gz |
@@ -1,12 +1,12 @@ | |||
1 | # Maintainer: ml <ml@visu.li> | 1 | # Maintainer: ml <ml@visu.li> |
2 | pkgname=helmsman | 2 | pkgname=helmsman |
3 | pkgver=3.3.0 | 3 | pkgver=3.3.0 |
4 | pkgrel=1 | 4 | pkgrel=2 |
5 | pkgdesc='Helm Charts as Code' | 5 | pkgdesc='Helm Charts as Code' |
6 | arch=('x86_64' 'i686') | 6 | arch=('x86_64' 'i686') |
7 | url='https://github.com/Praqma/helmsman' | 7 | url='https://github.com/Praqma/helmsman' |
8 | license=('MIT') | 8 | license=('MIT') |
9 | depends=('helm' 'kubectl') | 9 | depends=('helm-diff' 'kubectl') |
10 | optdepends=('ruby-hiera-eyaml: backend for secret encryption') | 10 | optdepends=('ruby-hiera-eyaml: backend for secret encryption') |
11 | makedepends=('go') | 11 | makedepends=('go') |
12 | source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz") | 12 | source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz") |
@@ -14,10 +14,13 @@ sha256sums=('e9116122751a6448129d2e14f01b2777f66f02d534c5985bb5dc16eedca0387e') | |||
14 | 14 | ||
15 | build() { | 15 | build() { |
16 | cd "${pkgname}-${pkgver}" | 16 | cd "${pkgname}-${pkgver}" |
17 | export CGO_ENABLED=1 | ||
17 | export CGO_LDFLAGS="$LDFLAGS" | 18 | export CGO_LDFLAGS="$LDFLAGS" |
19 | export CGO_CFLAGS="$CFLAGS" | ||
20 | export CGO_CPPFLAGS="$CPPFLAGS" | ||
21 | export CGO_CXXFLAGS="$CXXFLAGS" | ||
18 | export GOFLAGS='-buildmode=pie -modcacherw -trimpath' | 22 | export GOFLAGS='-buildmode=pie -modcacherw -trimpath' |
19 | # https://github.com/Praqma/helmsman/blob/master/Makefile | 23 | # man makepkg(8), https://github.com/Praqma/helmsman/blob/master/Makefile |
20 | # man makepkg(8) | ||
21 | _date=$(date --utc --date="@${SOURCE_DATE_EPOCH}" +'%d%m%y') | 24 | _date=$(date --utc --date="@${SOURCE_DATE_EPOCH}" +'%d%m%y') |
22 | go build -o "$pkgname" -ldflags "-X main.version=v${pkgver}-${_date}" ./cmd/helmsman | 25 | go build -o "$pkgname" -ldflags "-X main.version=v${pkgver}-${_date}" ./cmd/helmsman |
23 | } | 26 | } |