45 lines
1.4 KiB
Bash
45 lines
1.4 KiB
Bash
# Template file for 'whois'
|
|
pkgname=whois
|
|
version=5.5.23
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
make_build_args="HAVE_ICONV=1 CONFIG_FILE=/etc/whois.conf"
|
|
make_install_args="BASEDIR=\${DESTDIR}"
|
|
make_install_target="install-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"
|
|
homepage="https://www.linux.it/~md/software"
|
|
changelog="https://raw.githubusercontent.com/rfc1036/whois/next/debian/changelog"
|
|
distfiles="${DEBIAN_SITE}/main/w/whois/whois_${version}.tar.xz"
|
|
checksum=35c04e46bd8435f46e446a817728b5fae2f0a389033a9383e5e20bb6e8fba14a
|
|
|
|
if [ "$XBPS_TARGET_LIBC" = "glibc" ]; then
|
|
makedepends+=" libxcrypt-devel"
|
|
fi
|
|
|
|
alternatives="
|
|
whois:whois:/usr/bin/gwhois
|
|
whois:whois.1:/usr/share/man/man1/gwhois.1
|
|
whois:whois:/usr/share/bash-completion/completions/gwhois"
|
|
|
|
post_install() {
|
|
mv ${DESTDIR}/usr/bin/{whois,gwhois}
|
|
mv ${DESTDIR}/usr/share/man/man1/{whois,gwhois}.1
|
|
vcompletion whois.bash bash gwhois
|
|
}
|
|
|
|
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
|
|
mkpasswd:mkpasswd:/usr/share/bash-completion/completions/gmkpasswd"
|
|
pkg_install() {
|
|
vbin mkpasswd gmkpasswd
|
|
vman mkpasswd.1 gmkpasswd.1
|
|
vcompletion mkpasswd.bash bash gmkpasswd
|
|
}
|
|
}
|