void-packages/srcpkgs/whois/template
2017-06-13 23:30:16 +02:00

25 lines
711 B
Bash

# Template file for 'whois'
pkgname=whois
version=5.2.16
revision=1
hostmakedepends="perl"
makedepends="libidn-devel"
short_desc="An improved whois client"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="https://www.linux.it/~md/software"
license="GPL-2"
distfiles="${DEBIAN_SITE}/main/w/${pkgname}/${pkgname}_${version}.tar.xz"
checksum=e9d208b61ccea96b611e522d30fb753dbefed0d44cfabe346e1928690453fc3a
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
}