summaryrefslogtreecommitdiffstats
path: root/main/jwhois/APKBUILD
blob: 817d4c7d79cb03ae5b948ff7ce08c37e094d937e (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=jwhois
pkgver=4.0
pkgrel=3
pkgdesc="WHOIS/RWHOIS client"
url="http://www.gnu.org/software/jwhois/"
license="GPL"
depends=
makedepends="libiconv-dev autoconf automake libtool gdbm-dev"
install=
subpackages="$pkgname-doc"
source="http://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz
	automake.patch
	jwhois-libiconv.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"