void-packages/srcpkgs/whois/template
2017-02-28 10:37:15 +01:00

25 lines
710 B
Bash

# Template file for 'whois'
pkgname=whois
version=5.2.15
revision=1
hostmakedepends="perl"
makedepends="libidn-devel"
short_desc="An improved whois client"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://www.linux.it/~md/software"
license="GPL-2"
distfiles="${DEBIAN_SITE}/main/w/${pkgname}/${pkgname}_${version}.tar.xz"
checksum=7a5a6b690bfc6360d92d9328adbe5c1f096a41f0d6548ce0df4aa664dcb37188
alternatives="
whois:whois:/usr/bin/gwhois
whois:whois.1:/usr/share/man/man1/gwhois.1"
do_build() {
make CC=$CC prefix=/usr HAVE_LIBIDN=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
}