summaryrefslogtreecommitdiff
path: root/extra/geoip/PKGBUILD
blob: 13b4ead43d3fed2867bf8fa60e1d294cacf7151e (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
# $Id: PKGBUILD 40077 2009-05-27 06:02:01Z juergen $
# Maintainer: Dan McGee <dan@archlinux.org>
# Contributor: Manolis Tzanidakis <manolis@archlinux.org>

pkgname=geoip
pkgver=1.4.6
pkgrel=1
pkgdesc="Non-DNS IP-to-country resolver C library & utils"
arch=(i686 x86_64)
license=('GPL')
url="http://www.maxmind.com/app/c"
depends=('zlib')
backup=(etc/geoip/GeoIP.conf)
options=('!libtool')
source=(http://www.maxmind.com/download/geoip/api/c/GeoIP-${pkgver}.tar.gz)
md5sums=('cb14b1beeb40631a12676b11ca0c309a')

build() {
  cd ${startdir}/src/GeoIP-${pkgver}
  ./configure --prefix=/usr --mandir=/usr/share/man --sysconfdir=/etc/geoip
  make || return 1
  make check || return 1
  make DESTDIR=${startdir}/pkg install
}