mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 03:05:48 +03:00
this marginally increases install speed by not checking if it needs a rebuild. also remove --prefix=/usr as it defaults to /usr already. might break a build or two, will fix later
33 lines
948 B
Text
33 lines
948 B
Text
# Contributor: Weilu Jia <optix2000@gmail.com>
|
|
# Maintainer: Weilu Jia <optix2000@gmail.com>
|
|
pkgname=py3-geoip
|
|
pkgver=1.3.2
|
|
pkgrel=1
|
|
pkgdesc="MaxMind GeoIP Legacy Database - Python API"
|
|
url="https://github.com/maxmind/geoip-api-python"
|
|
arch="all"
|
|
license="LGPL-2.1-or-later"
|
|
depends="python3 geoip"
|
|
makedepends="py3-setuptools python3-dev geoip-dev"
|
|
checkdepends="py3-nose"
|
|
options="!check" # Until there's an easy way to download legacy GeoIP DBs
|
|
source="https://pypi.python.org/packages/source/G/GeoIP/GeoIP-$pkgver.tar.gz"
|
|
builddir="$srcdir/GeoIP-$pkgver"
|
|
|
|
build() {
|
|
export SETUPTOOLS_USE_DISTUTILS=stdlib
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
python3 setup.py test
|
|
}
|
|
|
|
package() {
|
|
export SETUPTOOLS_USE_DISTUTILS=stdlib
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
313af794d839e83408b40573566fb55483c1ddd663a7919b54751bc9da85cf855f9eb17d8fdb641702740da5c5d79d79d3d7f15b82fa88092f780d0c667c4e7a GeoIP-1.3.2.tar.gz
|
|
"
|