void-packages/srcpkgs/whois/template

27 lines
721 B
Bash

# Template file for 'whois'
pkgname=whois
version=5.3.2
revision=1
hostmakedepends="perl"
makedepends="libidn-devel"
short_desc="An improved whois client"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2.0-or-later"
homepage="https://www.linux.it/~md/software"
distfiles="${DEBIAN_SITE}/main/w/${pkgname}/${pkgname}_${version}.tar.xz"
checksum=79714ba89172bca08a2443f59885daa4af0c5f8d6a49bc9e7f2a83559a286354
alternatives="
whois:whois:/usr/bin/gwhois
whois:whois.1:/usr/share/man/man1/gwhois.1"
do_build() {
make CC=$CC prefix=/usr HAVE_ICONV=1
}
do_install() {
make prefix=/usr BASEDIR=${DESTDIR} install-whois
mv ${DESTDIR}/usr/bin/{whois,gwhois}
mv ${DESTDIR}/usr/share/man/man1/{whois,gwhois}.1
}