gentoo-zh/net-analyzer/nali/nali-0.8.1_p20250221.ebuild
jinqiang zhang 132fba5e4a
net-analyzer/nali: add 0.8.1_p20250221, drop 0.8.1_p20240827
Signed-off-by: jinqiang zhang <jinqiang@zhang.my>
2025-03-20 15:09:58 +08:00

30 lines
758 B
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module
DESCRIPTION="An offline tool for querying IP geographic information and CDN provider."
HOMEPAGE="https://github.com/zu1k/nali"
EGIT_COMMIT="a41f45b7d9f0ad69631a19a21bd60ae00a777126"
SRC_URI="
https://github.com/zu1k/nali/archive/${EGIT_COMMIT}.tar.gz -> ${P}.gh.tar.gz
https://github.com/peeweep/gentoo-go-deps/releases/download/${P}/${P}-vendor.tar.xz
"
S="${WORKDIR}/${PN}-${EGIT_COMMIT}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
src_compile() {
local ldflags="\
-X \"github.com/zu1k/nali/internal/constant.Version=${PV}\" \
-w -s"
ego build -trimpath -ldflags "${ldflags}"
}
src_install() {
dobin ${PN}
}