diff --git a/dev-util/nfpm/Manifest b/dev-util/nfpm/Manifest new file mode 100644 index 0000000..22be3cd --- /dev/null +++ b/dev-util/nfpm/Manifest @@ -0,0 +1 @@ +EBUILD nfpm-9999.ebuild 736 BLAKE2B 473fdcd13bbafdf2aa86bf85eb582c36b0ea520429a4aada122b45d7d3d3963a7a436022500587c812098abda417058d0765b566bc28fc66d25d20a9c0123bbe SHA512 3e04a2da304431f914976774ef78afb5d01c96bc03c9cc2d454319a59a7ccf0d07898f02b85e1edfd143a05987d9a8090ec5c79347932693c8332452ccc900aa diff --git a/dev-util/nfpm/nfpm-9999.ebuild b/dev-util/nfpm/nfpm-9999.ebuild new file mode 100644 index 0000000..6c45b88 --- /dev/null +++ b/dev-util/nfpm/nfpm-9999.ebuild @@ -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} +}