mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-08 00:05:33 +03:00
Closes: https://bugs.gentoo.org/679186 Closes: https://bugs.gentoo.org/844676 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
34 lines
590 B
Bash
34 lines
590 B
Bash
# Copyright 1999-2024 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit go-module
|
|
|
|
DESCRIPTION="Print version used to build Go executables"
|
|
HOMEPAGE="https://github.com/rsc/goversion https://rsc.io/goversion"
|
|
SRC_URI="https://github.com/rsc/goversion/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="BSD"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
|
|
src_unpack() {
|
|
default
|
|
cat <<- EOF > "${S}"/go.mod
|
|
module rsc.io/goversion
|
|
|
|
go 1.17
|
|
EOF
|
|
go-module_src_unpack
|
|
}
|
|
|
|
src_compile() {
|
|
ego build -o ${PN} .
|
|
}
|
|
|
|
src_install() {
|
|
dobin ${PN}
|
|
dodoc README.md
|
|
}
|