add dev-util/goreleaser
Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
parent
2c0499cab7
commit
e690819395
2 changed files with 32 additions and 0 deletions
1
dev-util/goreleaser/Manifest
Normal file
1
dev-util/goreleaser/Manifest
Normal file
|
@ -0,0 +1 @@
|
|||
EBUILD goreleaser-9999.ebuild 703 BLAKE2B 6712bba7dbb44bb1704cea443f60dd34bf27d5a4603aa32fb49cb930e2264504b59b69fe6fb2959e53474da5c923ab5ead89d598e97fd99851541f62168786f8 SHA512 edba1cf5f1f9e03187b781b59c0ff8b0229d0efe56052d6fb44a62b7a75d95793a1e23d21e996b4c3e3562ff444e35f2abf24ddd20b9b71c4d68a8c69c102196
|
31
dev-util/goreleaser/goreleaser-9999.ebuild
Normal file
31
dev-util/goreleaser/goreleaser-9999.ebuild
Normal 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="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}
|
||||
}
|
Loading…
Reference in a new issue