gentoo-zh/net-dns/dnslookup/dnslookup-1.11.1.ebuild
jinqiang zhang f2efc0ced2 net-dns/dnslookup: update SRC_URI
Signed-off-by: jinqiang zhang <jinqiang@zhang.my>
2024-11-13 14:18:50 +08:00

29 lines
671 B
Bash

# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module
DESCRIPTION="Simple command line utility to make DNS lookups to the specified server "
HOMEPAGE="https://github.com/ameshkov/dnslookup"
SRC_URI="
https://github.com/ameshkov/dnslookup/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
https://github.com/peeweep/gentoo-go-deps/releases/download/${P}/${P}-vendor.tar.xz
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
src_compile() {
local ldflags="\
-X main.VersionString=${PV} \
-w -s"
ego build -o ${P} -trimpath -ldflags "${ldflags}"
}
src_install() {
newbin ${P} dnslookup
}