38 lines
1020 B
Bash
38 lines
1020 B
Bash
# Template file for 'whois'
|
|
pkgname=whois
|
|
version=5.5.2
|
|
revision=1
|
|
wrksrc=whois
|
|
hostmakedepends="perl pkg-config"
|
|
makedepends="libidn2-devel"
|
|
short_desc="Improved whois client"
|
|
maintainer="Duncaen <duncaen@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=c0594d3bc81c12958118ffa5c1bc04db105b853e7f748021588913c986fea5c0
|
|
|
|
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
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|