diff options
Diffstat (limited to 'net-dns/doggo/doggo-1.0.4.ebuild')
-rw-r--r-- | net-dns/doggo/doggo-1.0.4.ebuild | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/net-dns/doggo/doggo-1.0.4.ebuild b/net-dns/doggo/doggo-1.0.4.ebuild new file mode 100644 index 000000000000..cb4e40048fc1 --- /dev/null +++ b/net-dns/doggo/doggo-1.0.4.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module shell-completion + +DESCRIPTION="Command-line DNS Client for Humans" +HOMEPAGE="https://github.com/mr-karan/doggo" + +SRC_URI="https://github.com/mr-karan/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz + https://www.applied-asynchrony.com/distfiles/${P}-deps.tar.xz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" + +src_compile() { + emake build-cli VERSION=${PV} +} + +src_install() { + newbin bin/${PN}.bin ${PN} + + local comp + for comp in bash fish zsh; do + bin/${PN}.bin completions $comp > "${WORKDIR}"/${PN}.$comp || die + done + + newbashcomp "${WORKDIR}"/${PN}.bash ${PN} + newfishcomp "${WORKDIR}"/${PN}.fish ${PN}.fish + newzshcomp "${WORKDIR}"/${PN}.zsh _${PN} +} |