aboutsummaryrefslogtreecommitdiffstats
path: root/community/nfpm/APKBUILD
blob: 9053e2d0e07f57befc92303cda8bbf5e15f8133d (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
# Contributor: Kevin Daudt <kdaudt@alpinelinux.org>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=nfpm
pkgver=2.17.0
pkgrel=0
pkgdesc="a simple apk, Deb and RPM packager without external dependencies"
url="https://nfpm.goreleaser.com/"
arch="all !riscv64"
license="MIT"
makedepends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/goreleaser/nfpm/archive/v$pkgver.tar.gz"

export GOMODCACHE="$srcdir/go"
export GOFLAGS="$GOFLAGS -modcacherw"

build() {
	go build -ldflags "-s -w -X main.version=$pkgver" -v -o nfpm ./cmd/nfpm/main.go
}

check() {
	go test
}

package() {
	install -Dm0755 nfpm "$pkgdir/usr/bin/nfpm"
}

sha512sums="
8fc8cd97b522bbe74d51a4d07b4de5ac90b3bcd0891f932c13b4831535e718ba18de26ebbf905947d6930a9eba0aa39b325002fd428cbd6babdc6bb49f2d5207  nfpm-2.17.0.tar.gz
"