# Contributor: Kevin Daudt # Maintainer: Kevin Daudt pkgname=nfpm pkgver=2.32.0 pkgrel=1 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 GOFLAGS="$GOFLAGS -modcacherw" export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}" export GOTMPDIR="${GOTMPDIR:-"$srcdir"}" export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}" build() { go build -ldflags "-X main.version=$pkgver" -v -o nfpm ./cmd/nfpm/main.go } check() { go test } package() { install -Dm0755 nfpm "$pkgdir/usr/bin/nfpm" } sha512sums=" 65bf02bba01c60be93f9ce4d7e09dfe673f9f511846e2c40d6e49336430ebca87862c4d8f47639af0386ba9b4a179a1b49ade1e3c5d8af314974e5ad3bb248b6 nfpm-2.32.0.tar.gz "