diff --git a/dev-util/goreleaser/Manifest b/dev-util/goreleaser/Manifest new file mode 100644 index 0000000..e94feaf --- /dev/null +++ b/dev-util/goreleaser/Manifest @@ -0,0 +1 @@ +EBUILD goreleaser-9999.ebuild 703 BLAKE2B 6712bba7dbb44bb1704cea443f60dd34bf27d5a4603aa32fb49cb930e2264504b59b69fe6fb2959e53474da5c923ab5ead89d598e97fd99851541f62168786f8 SHA512 edba1cf5f1f9e03187b781b59c0ff8b0229d0efe56052d6fb44a62b7a75d95793a1e23d21e996b4c3e3562ff444e35f2abf24ddd20b9b71c4d68a8c69c102196 diff --git a/dev-util/goreleaser/goreleaser-9999.ebuild b/dev-util/goreleaser/goreleaser-9999.ebuild new file mode 100644 index 0000000..f3b12c5 --- /dev/null +++ b/dev-util/goreleaser/goreleaser-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="Deliver Go binaries as fast and easily as possible" +HOMEPAGE="https://github.com/goreleaser/goreleaser https://goreleaser.com/" + +EGIT_REPO_URI="https://github.com/goreleaser/goreleaser.git" + +RESTRICT="network-sandbox strip" +LICENSE="MIT" +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" . +} + +src_install() { + dobin ./${PN} +}