1 # Copyright 1999-2023 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 inherit go-module systemd
7 DESCRIPTION
="Another Clash Kernel."
8 HOMEPAGE
="https://github.com/MetaCubeX/Clash.Meta"
11 https://github.com/MetaCubeX/Clash.Meta/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
12 https://github.com/st0nie/gentoo-go-deps/releases/download/${P}/${P}-deps.tar.xz
25 S
="${WORKDIR}/Clash.Meta-${PV}"
29 local BUILDTIME
=$
(LC_ALL
=C
date -u || die
)
38 -ldflags "-linkmode external -extldflags \"${LDFLAGS}\" \
39 -X \"github.com/Dreamacro/clash/constant.Version=${PV}\" \
40 -X \"github.com/Dreamacro/clash/constant.BuildTime=${BUILDTIME}\" \
42 -tags "$MY_TAGS" -o "${P}"
47 systemd_dounit
"${FILESDIR}/Clash-Meta.service"
48 newinitd
"${FILESDIR}"/clash-meta.initd clash-meta