# Contributor: Stuart Cardall # Maintainer: Stuart Cardall pkgname=whois pkgver=5.4.0 pkgrel=0 pkgdesc="Intelligent WHOIS client by Marco d'Itri" url="https://github.com/rfc1036/whois" arch="all" license="GPL-2.0" makedepends="perl libidn-dev gettext-dev" options="!check" subpackages="$pkgname-doc mkpasswd:_mkpasswd mkpasswd-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/rfc1036/$pkgname/archive/v$pkgver.tar.gz undefined-libintl.patch enable-sha256-sha512-mkpasswd.patch " builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" make CONFIG_FILE="/etc/whois.conf" HAVE_ICONV=1 } _mkpasswd() { depends="!expect" pkgdesc="mkpasswd with configurable number of rounds" cd "$builddir" make BASEDIR="$subpkgdir" install-mkpasswd mkdir -p "$subpkgdir"-doc/usr mv "$subpkgdir"/usr/share "$subpkgdir"-doc/usr } package() { cd "$builddir" make BASEDIR="$pkgdir" install-whois install -D -m644 whois.conf "$pkgdir/etc/whois.conf" } sha512sums="f50568ee0d027d3a5d7ff05be7bbf31ab01d96a597c68da235e0d06914c9cb90ca9ac59a50df1523773a6d119fc8d2b0fe397578a945907f78d60e9c992d2f23 whois-5.4.0.tar.gz efa32ec848e3d3e61481567815e8c02757eab32712eb5a431adb13b59fd359f735eb684fbdf8a5b8334410d17052dc93d65bdda27a328617e2b6772b23717487 undefined-libintl.patch 66a6b36e4caa00d58ab44c8fb55bfe919994fc6c7631cc283d9f37f9d69bf3e911ab365b27b1720065103e8d7abbf7549dfb260e156c1b52726a8c8b8820c836 enable-sha256-sha512-mkpasswd.patch"