summaryrefslogtreecommitdiffstats
path: root/abs/extra/geoip/PKGBUILD
blob: 936aa5763542fa9eae28eb8d3865f14f96445e80 (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
# $Id: PKGBUILD 40078 2009-05-27 06:04:17Z juergen $
# Maintainer: Dan McGee <dan@archlinux.org>
# Contributor: Manolis Tzanidakis <manolis@archlinux.org>

pkgname=geoip
pkgver=1.4.7
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)

build() {
  cd ${srcdir}/GeoIP-${pkgver}
  ./configure --prefix=/usr --mandir=/usr/share/man --sysconfdir=/etc/geoip
  make || return 1
}

check() {

  cd ${srcdir}/GeoIP-${pkgver}
  make check || return 1

}

package() {
  cd ${srcdir}/GeoIP-${pkgver}
  make DESTDIR=${startdir}/pkg install
}
md5sums=('a802175d5b7e2b57b540a7dd308d9205')