aboutsummaryrefslogtreecommitdiffstats
path: root/testing/whois/APKBUILD
blob: 83b2b8751465c8439732788632c72efb6fe9b854 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=whois
pkgver=5.2.10
pkgrel=1
pkgdesc="Intelligent WHOIS client by Marco d'Itri"
url="http://www.linux.it/~md/software/"
arch="all"
license="GPL2"
makedepends="$depends_dev perl libidn-dev gettext-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/rfc1036/$pkgname/archive/v$pkgver.tar.gz"

_builddir="$srcdir"/$pkgname-$pkgver
build() {
	cd "$_builddir"
	make CONFIG_FILE="/etc/whois.conf" \
		HAVE_LIBIDN=1 HAVE_ICONV=1 \
		CFLAGS="$CFLAGS -lintl $CXXFLAGS" || return 1
}

package() {
	cd "$_builddir"
	make BASEDIR="$pkgdir" install-whois || return 1
	install -D -m644 whois.conf "$pkgdir/etc/whois.conf"
}

md5sums="19579468bdb311eed5c6b8c3216cce1b  whois-5.2.10.tar.gz"
sha256sums="8169bead001fb68d14f09a49c117d3408d48a3378f3a67eb0e56848a637ad54e  whois-5.2.10.tar.gz"
sha512sums="c3280d62329035c12cc69dd45986d32fd9c858efa9b2d8674cb8208429c1eb35dfcb50aaab442215e5c3321cbb1fc4ecabff7058c38da2db8fb5f0aac61429c2  whois-5.2.10.tar.gz"