aboutsummaryrefslogtreecommitdiffstats
path: root/community/whois/APKBUILD
blob: 0cf1932f0f4a0c685908ef86d25f7d4b83ea60ee (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
31
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=whois
pkgver=5.2.15
pkgrel=0
pkgdesc="Intelligent WHOIS client by Marco d'Itri"
url="http://www.linux.it/~md/software/"
arch="all"
license="GPL2"
makedepends="perl libidn-dev gettext-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/rfc1036/$pkgname/archive/v$pkgver.tar.gz
	undefined-libintl.patch
	"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	make CONFIG_FILE="/etc/whois.conf" \
		HAVE_LIBIDN=1 HAVE_ICONV=1 \
		|| return 1
}

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

sha512sums="3dcf7767cc4bf96dd86489d531a110d9b596de2b307caa228c143c155a9ffc71b72e10628cadda5b85e61041ab61b3551b30de504bbad02fc7815b27c92836d8  whois-5.2.15.tar.gz
efa32ec848e3d3e61481567815e8c02757eab32712eb5a431adb13b59fd359f735eb684fbdf8a5b8334410d17052dc93d65bdda27a328617e2b6772b23717487  undefined-libintl.patch"