aboutsummaryrefslogtreecommitdiffstats
path: root/community/nfpm/APKBUILD
blob: 35d07eb8c00130484ef4d10699952cefd34ad232 (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.5.1
pkgrel=0
pkgdesc="a simple apk, Deb and RPM packager without external dependencies"
url="https://nfpm.goreleaser.com/"
arch="all"
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="
968de252f55f14e607de1bccf3f7a7ae28295c7813ce1d24888042e307a879d089c24bd5c919bc2a91d83aba4c71c5c9bfb0a5c576470713b1e001e7addadcc5  nfpm-2.5.1.tar.gz
"