void-packages/srcpkgs/whois/template
maxice8 c2fe4f6216 whois: update to 5.3.1.
Closes #14655.

Signed-off-by: Enno Boland <gottox@voidlinux.eu>
2018-05-26 15:27:10 +02:00

26 lines
721 B
Bash

# Template file for 'whois'
pkgname=whois
version=5.3.1
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=ef4ead31306a388d9c8c83d67f56c94ed8b4c85e94f60baea2f5b1660445893e
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
}