upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / python-pygeoip / trunk / PKGBUILD
blob3576bb5b5f0bf69a537fedaf19ff2c227fc08fac
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
4 pkgname=python-pygeoip
5 pkgver=0.3.2
6 pkgrel=8
7 pkgdesc="Pure Python GeoIP API"
8 arch=('any')
9 url="https://pypi.python.org/pypi/pygeoip"
10 license=('LGPL')
11 depends=('python')
12 makedepends=('python-setuptools')
13 checkdepends=('python-nose')
14 optdepends=('geoip-database: provides a database for geoip lookups')
15 source=("https://pypi.python.org/packages/source/p/pygeoip/pygeoip-$pkgver.tar.gz")
16 sha512sums=('7d7a6d04b7b00c068ae4b78176bbe5467a54e4c688034c3024013c1c42a2a23264d04ba2d0c9bf023e31601dff1b392d64c41c2f0d835758c1b65da91710122e')
18 build() {
19   cd pygeoip-$pkgver
20   python setup.py build
23 check() {
24   cd pygeoip-$pkgver
25   nosetests3
28 package() {
29   cd pygeoip-$pkgver
30   python setup.py install --root="$pkgdir" --optimize=1 --skip-build