summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6f9891b037217cc6ad2fbfaae9ac7be75fdfaa6f (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
# Maintainer: Pierre Mavro <pmavro@qovery.com>
pkgname=helm-freeze
pkgver=1.0.0
pkgrel=1
pkgdesc="Freeze your charts in the wished versions"
arch=(x86_64)
url="https://github.com/Qovery/helm-freeze"
license=('GPL')
makedepends=(git go)
source=("https://github.com/Qovery/helm-freeze/archive/v$pkgver.tar.gz")

build() {
	cd "$pkgname-$pkgver"
    export CGO_LDFLAGS="${LDFLAGS}"
    export CGO_CFLAGS="${CFLAGS}"
    export CGO_CPPFLAGS="${CPPFLAGS}"
    export CGO_CXXFLAGS="${CXXFLAGS}"
    export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
    go build -o $pkgname main.go
}

package() {
	cd "$pkgname-$pkgver"
    install -Dm755 "$pkgname" "$pkgdir/usr/bin/helm-freeze"
}

md5sums=('3509cd66f61b4f14490f2cd348456f67')