summaryrefslogtreecommitdiffstats
path: root/main/geoip/APKBUILD
blob: 2670da301ca796bab52d750e6a278efa1ff31e70 (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
# Contributor:
# Maintainer: Leonardo Arena <rnalrd@gmail.com>
pkgname="geoip"
_realname="GeoIP"
pkgver=1.4.7
pkgrel=0
pkgdesc="Lookup countries by IP addresses"
url="http://www.maxmind.com/app/ip-location"
arch="all"
license="GPL"
depends=
makedepends="zlib-dev"
install=
subpackages="$pkgname-dev $pkgname-doc"
source="http://www.maxmind.com/download/geoip/api/c/$_realname-$pkgver.tar.gz"

_builddir="$srcdir"/$_realname-$pkgver

prepare() {
	cd "$_builddir"
	# apply patches here
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc/geoip \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make || return 1
	make check || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
}

md5sums="a802175d5b7e2b57b540a7dd308d9205  GeoIP-1.4.7.tar.gz"