portage/dev-util/nfpm/nfpm-9999.ebuild
2023-05-18 20:18:30 +02:00

32 lines
736 B
Bash

# 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}
}