summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b230b6dfd32f826f571afaaf588e8e150116181f (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
# Maintainer: Atom Long <atom.long@hotmail.com>

_pkgname=ip2geotools
pkgname=python-${_pkgname}
pkgver=0.1.6
pkgrel=1
pkgdesc='Simple tool for getting geolocation information on given IP address from various geolocation databases.'
url='https://pypi.org/project/ip2geotools'
arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h' 'aarch64')
license=('MIT')
depends=('python')
makedepends=('python-setuptools' 'python-pip')
checkdepends=('python-pytest' 'python-pytest-runner' 'python-pytest-mock' 'python-pytest-timeout' 'python-wheel')
source=("https://github.com/tomas-net/ip2geotools/archive/${pkgver}.tar.gz")
sha512sums=('3bbf33388409cce5b94cb79d28ac5d158796d27c6c23fc0609086299d94e41e5a396c4dc0f4b1f0e1becd3f8b887f09bf6b86b5f2651d2698ea6c48f1f7701ef')

build() {
  cd ${_pkgname}-${pkgver}
  python setup.py build
}

check() {
  cd ${_pkgname}-${pkgver}
  python setup.py test
}

package() {
  cd ${_pkgname}-${pkgver}
  python setup.py install --root="${pkgdir}" -O1 --skip-build
}

# vim: ts=2 sw=2 et: