# Maintainer: William Pitcock pkgname=jwhois pkgver=4.0 pkgrel=4 pkgdesc="WHOIS/RWHOIS client" url="https://www.gnu.org/software/jwhois/" license="GPL" depends= makedepends="autoconf automake libtool gdbm-dev" install= subpackages="$pkgname-doc" source="https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz automake.patch jwhois-libiconv.patch no-gnulib.patch" arch="all" _builddir="$srcdir/$pkgname-$pkgver" prepare() { cd "$_builddir" update_config_sub || return 1 for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done autoreconf } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/ \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --disable-nls \ --with-cache \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install } md5sums="977d0ba90ee058a7998c94d933fc9546 jwhois-4.0.tar.gz 0dea1e6255b1b826043c8784882b2048 automake.patch f861d1891a718f3b370e1ac032b0b337 jwhois-libiconv.patch ab40914af91fd2e4266206e857aa6da5 no-gnulib.patch" sha256sums="fa9bb86782b915c6d730bb723f876dc9b345a617db375aaf3416ec22553cd64e jwhois-4.0.tar.gz ebbbb6819eb126c8ad55a7765508ec8f5dedd4a117fd459f2a0cf25be0529335 automake.patch b20d56512f2e196fd9b396cc8a86bcd690be696bac8410b6950c42f79799a272 jwhois-libiconv.patch 7979c9aa651e8a7fb213fc0d2e24f4b3dc07e86d80192022a3c2e7135086b01a no-gnulib.patch" sha512sums="5d625c3f1031a8eb8ef766ef5d47a8c1a4396d1ad3344fc9449f80dd71ad84aadf21ba67f5c2f99348f732a4df998eefe699fcec4efcadf87f579b70302a44ae jwhois-4.0.tar.gz 28d191d01569b68e3453e116fb7294405c38be6c3cea7bc4e3bb8039e823e0af3919501a8291512f4c0b8990b57f6711dc347a432cf9833fe9dcf402358def92 automake.patch 0daee64f91c8dfd6faa4ad751889aaf10805d7b127bd62856112bdcdd9cb4b29c2e2e62d58a9843cd4d511648c2264a1d47f42137bca8ed59d5a6a7d803c857d jwhois-libiconv.patch 60f081d544044ba2ab91f231df0c8facf76b89b406906b61d5b395ca3d299a0d712cd177fe98464db918803500e5f149a4eac44932e47f8cede4ab162bea638e no-gnulib.patch"