add dev-util/nfpm

This commit is contained in:
Sam Therapy 2023-05-18 20:18:30 +02:00
parent b420df7ac0
commit 7989790426
Signed by: sam
GPG key ID: 4D8B07C18F31ACBD
2 changed files with 32 additions and 0 deletions

1
dev-util/nfpm/Manifest Normal file
View file

@ -0,0 +1 @@
EBUILD nfpm-9999.ebuild 736 BLAKE2B 473fdcd13bbafdf2aa86bf85eb582c36b0ea520429a4aada122b45d7d3d3963a7a436022500587c812098abda417058d0765b566bc28fc66d25d20a9c0123bbe SHA512 3e04a2da304431f914976774ef78afb5d01c96bc03c9cc2d454319a59a7ccf0d07898f02b85e1edfd143a05987d9a8090ec5c79347932693c8332452ccc900aa

View file

@ -0,0 +1,31 @@
# Copyright 2020-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit git-r3 go-module
DESCRIPTION="nFPM is Not FPM - a simple deb, rpm and apk packager"
HOMEPAGE="https://github.com/goreleaser/nfpm https://nfpm.goreleaser.com/"
EGIT_REPO_URI="https://github.com/goreleaser/nfpm.git"
RESTRICT="network-sandbox strip"
LICENSE="MIT BSD BSD-2 Apache-2.0 MPL-2.0"
SLOT="0"
IUSE=""
KEYWORDS="~amd64 ~arm64 ~x86"
src_unpack() {
default
git-r3_src_unpack
go-module_live_vendor
}
src_compile() {
ego build -ldflags "-s -w -X main.version=${PV} -X main.date=$(date -I) -X main.commit=$(git-r3_peek_remote_ref) -X main.builtBy=portage" ./cmd/nfpm
}
src_install() {
dobin ./${PN}
}