# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). # See COPYING for license details. pkgname=python2-maxminddb _pkgname=maxminddb pkgver=1.5.1 pkgrel=1 pkgdesc='Reader for the MaxMind DB format.' arch=('x86_64' 'aarch64') url='https://pypi.org/project/maxminddb/#files' license=('Apache') depends=('python2' 'python2-ipaddress') makedepends=('python2-setuptools') source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz") sha512sums=('2e0e2817251d3c2615b1d4ee1ded192e551bb2e44b3b37e8403010a467fccc221d8f0376aa764e75f3bf727295813a4a2c962949597d4978b5a1399d237f5699') build() { cd "$_pkgname-$pkgver" python2 setup.py build } package() { cd "$_pkgname-$pkgver" python2 setup.py install --prefix=/usr --root="$pkgdir" -O1 --skip-build }