summaryrefslogtreecommitdiff
path: root/extra/geoip/PKGBUILD
blob: d969c256c6dca75b16f2660a02faf2d505277c60 (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
# $Id: PKGBUILD 136949 2011-09-03 12:23:55Z foutrelis $
# Maintainer: Dan McGee <dan@archlinux.org>
# Contributor: Manolis Tzanidakis <manolis@archlinux.org>

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

build() {
  cd "${srcdir}/GeoIP-${pkgver}"

  autoreconf -i
  ./configure --prefix=/usr --mandir=/usr/share/man --sysconfdir=/etc/geoip
  make
}

check() {
  cd "${srcdir}/GeoIP-${pkgver}"
  make check
}

package() {
  cd "${srcdir}/GeoIP-${pkgver}"
  make DESTDIR="${pkgdir}" install
}

# vim:set ts=2 sw=2 et: