EAPI=8
inherit go-module
DESCRIPTION="Simple command line utility to make DNS lookups to the specified server"
HOMEPAGE="https://github.com/ameshkov/dnslookup"

# vendor tarball needs to be updated with each release:
# https://wiki.gentoo.org/wiki/Writing_go_Ebuilds#Manual_Vendor_tarball

# use LFS for vendor tarball in the portage-deps repo:
# git add foo-vendor.tar.xz && git commit -a && git lfs migrate import --include=foo-vendor.tar.xz --everything && git push

SRC_URI="
	https://github.com/ameshkov/$PN/archive/refs/tags/v$PV.tar.gz -> ${P}.tar.gz
	https://git.alfter.us/salfter/portage-deps/media/branch/master/${P}-vendor.tar.xz
"
LICENSE=MIT
SLOT=0
KEYWORDS=~amd64

src_install()
{
  dobin $PN
}