void-packages/srcpkgs/whois/template

39 lines
1.1 KiB
Bash

# Template file for 'whois'
pkgname=whois
version=5.5.6
revision=2
wrksrc=whois
hostmakedepends="perl pkg-config gettext"
makedepends="libidn2-devel"
short_desc="Improved whois client"
maintainer="Duncaen <duncaen@voidlinux.org>"
license="GPL-2.0-or-later"
changelog="https://raw.githubusercontent.com/rfc1036/whois/next/debian/changelog"
homepage="https://www.linux.it/~md/software"
distfiles="${DEBIAN_SITE}/main/w/${pkgname}/${pkgname}_${version}.tar.xz"
checksum=cba1e9000c60950f46a96ba23e8eea8aee240a2b8560e63a6bfb33f9034af14e
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 CONFIG_FILE=/etc/whois.conf
}
do_install() {
make prefix=/usr BASEDIR=${DESTDIR} install-whois
mv ${DESTDIR}/usr/bin/{whois,gwhois}
mv ${DESTDIR}/usr/share/man/man1/{whois,gwhois}.1
}
mkpasswd_package() {
short_desc="Feature-rich front end to crypt(3) password encryption"
alternatives="mkpasswd:mkpasswd:/usr/bin/gmkpasswd
mkpasswd:mkpasswd.1:/usr/share/man/man1/gmkpasswd.1"
pkg_install() {
vbin mkpasswd gmkpasswd
vman mkpasswd.1 gmkpasswd.1
}
}