desktop/whois/PKGBUILD

30 lines
796 B
Bash
Raw Normal View History

pkgname=whois
2016-11-11 22:47:57 +08:00
pkgver=5.2.13
pkgrel=1
pkgdesc="The whois client by Marco d'Itri"
arch=('x86_64')
url="http://www.linux.it/~md/software/"
license=('GPL')
depends=('libidn')
makedepends=('perl')
2016-08-09 04:30:41 +08:00
backup=('etc/whois.conf')
2014-12-17 19:20:38 +08:00
source=("http://ftp.debian.org/debian/pool/main/w/$pkgname/whois_$pkgver.tar.xz")
2016-11-11 22:47:57 +08:00
sha512sums=('0c9028021415e69116e891696c86b26cbab17f861829fe5f9a5ed1528f7e6d8406890a8d1afdeb17e41856eaa076fe7417557034b20bb59109b9fc5970ad05c7')
build() {
2016-08-09 04:30:41 +08:00
cd "${srcdir}/${pkgname}-${pkgver}"
make prefix=/usr \
CFLAGS="$CFLAGS $CPPFLAGS" \
CONFIG_FILE=/etc/whois.conf \
HAVE_LIBIDN=1 \
HAVE_ICONV=1
}
2016-08-09 04:30:41 +08:00
package() {
2016-08-09 04:30:41 +08:00
cd "${srcdir}/${pkgname}-${pkgver}"
make prefix=/usr BASEDIR="${pkgdir}" install-whois
2016-11-11 22:47:57 +08:00
install -Dm644 whois.conf "${pkgdir}/etc/whois.conf"
}