26 lines
733 B
Bash
26 lines
733 B
Bash
# Template file for 'whois'
|
|
pkgname=whois
|
|
version=5.4.0
|
|
revision=2
|
|
hostmakedepends="perl pkg-config"
|
|
makedepends="libidn2-devel"
|
|
short_desc="An improved whois client"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://www.linux.it/~md/software"
|
|
distfiles="${DEBIAN_SITE}/main/w/${pkgname}/${pkgname}_${version}.tar.xz"
|
|
checksum=3775ae0cfaa6dd8d886e5233c4826225cddcb88c99c2a08130d14e15fe58e378
|
|
|
|
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
|
|
}
|