# Maintainer: Evangelos Foutras <foutrelis@archlinux.org>
# Contributor: Gaetan Bisson <bisson@archlinux.org>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>

pkgname=whois
pkgver=5.6.5
pkgrel=1
pkgdesc="Intelligent WHOIS client"
arch=('x86_64')
url="https://github.com/rfc1036/whois"
license=('GPL')
depends=('libidn2' 'libxcrypt')
makedepends=('perl' 'git' 'bash-completion')
backup=('etc/whois.conf')
source=(git+https://github.com/rfc1036/whois.git#tag=v$pkgver?signed)
sha256sums=('46230ffed1516ba608ee0454de3c828ff6c31009ede2e5b210f9af14a22b873b')
validpgpkeys=('6791403B68AE2690517C42EAE6FFF1E38DC968B0') # Marco d'Itri <md@linux.it>

build() {
  cd $pkgname
  make \
    CONFIG_FILE=/etc/whois.conf \
    CFLAGS="$CFLAGS $CPPFLAGS" \
    HAVE_ICONV=1
}

package() {
  cd $pkgname
  make prefix=/usr BASEDIR="$pkgdir" install
  install -Dm644 whois.conf -t "$pkgdir/etc"
}

# vim:set ts=2 sw=2 et:
