void-packages/srcpkgs/whois/template
2019-03-29 11:44:55 -03:00

26 lines
731 B
Bash

# Template file for 'whois'
pkgname=whois
version=5.4.2
revision=1
hostmakedepends="perl pkg-config"
makedepends="libidn2-devel"
short_desc="Improved whois client"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://www.linux.it/~md/software"
distfiles="${DEBIAN_SITE}/main/w/${pkgname}/${pkgname}_${version}.tar.xz"
checksum=eee33a3b3a56912fbf115a7dd24ed60314e2707a3ad6aa604ca2752c1ed01f57
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
}