tun2socks: New ebuild

Signed-off-by: Stefan Knoblich <stkn@bitplumber.de>
This commit is contained in:
2023-01-03 14:29:46 +01:00
parent d6c1daa2e5
commit 1d8d45b608
2 changed files with 27 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
EAPI="8"
inherit go-module
HOMEPAGE="https://github.com/xjasonlyu/tun2socks"
SRC_URI="https://github.com/xjasonlyu/tun2socks/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
https://download.bitplumber.de/gentoo-overlay/distfiles/${P}-vendor.tar.xz"
LICENSE="GPL-3"
KEYWORDS="amd64"
RESTRICT="network"
SLOT="0"
DEPEND=""
RDEPEND=""
src_compile() {
ego build \
-ldflags "-X 'github.com/xjasonlyu/tun2socks/v2/internal/version.Version=${PV}' -X 'github.com/xjasonlyu/tun2socks/v2/internal/version.GitCommit=Gentoo ${PF}'"
}
src_install() {
dobin tun2socks
}