aboutsummaryrefslogtreecommitdiffstats
path: root/main/geoip/APKBUILD
blob: 25480e986950c089f413c61af0ce57f115491957 (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
# Contributor:
# Maintainer: Leonardo Arena <rnalrd@gmail.com>
pkgname="geoip"
_realname="GeoIP"
pkgver=1.4.6
pkgrel=1
pkgdesc="Lookup countries by IP addresses"
url="http://www.maxmind.com/app/ip-location"
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="cb14b1beeb40631a12676b11ca0c309a  GeoIP-1.4.6.tar.gz"