mirror of
https://github.com/gentoo-mirror/gentoo-zh.git
synced 2025-04-17 23:18:49 -04:00
29 lines
671 B
Bash
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
|
|
}
|