archrelease: copy trunk to extra-x86_64
[arch-packages.git] / geoip / trunk / PKGBUILD
blobe61eae4be45b5cec01665422db58d5a832d0deda
1 # Maintainer: Juergen Hoetzel <juergen@archlinux.org>
2 # Contributor: Manolis Tzanidakis <manolis@archlinux.org>
4 pkgname=geoip
5 pkgver=1.6.12
6 pkgrel=2
7 pkgdesc="Non-DNS IP-to-country resolver C library & utils"
8 arch=('x86_64')
9 url="https://www.maxmind.com/app/c"
10 license=('GPL')
11 depends=('zlib' 'geoip-database')
12 optdepends=('geoip-database-extra: city/ASN databases (not needed for country lookups)')
13 makedepends=('autoconf' 'libtool')
14 options=('!emptydirs')
15 source=($pkgname-$pkgver.tar.gz::https://github.com/maxmind/${pkgname}-api-c/archive/v${pkgver}.tar.gz)
16 sha256sums=('99b119f8e21e94f1dfd6d49fbeed29a70df1544896e76cd456f25e397b07d476')
18 prepare() {
19   cd geoip-api-c-$pkgver
20   ./bootstrap
23 build() {
24   cd geoip-api-c-$pkgver
26   ./configure \
27     --prefix=/usr \
28     --mandir=/usr/share/man \
29     --sysconfdir=/etc/geoip
30   make
33 package() {
34   cd geoip-api-c-$pkgver
35   make DESTDIR="$pkgdir" install
38 # vim:set ts=2 sw=2 et: