diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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 | } |