Date: Thursday, February 4, 2021 @ 12:25:26 Author: felixonmars Revision: 844438
addpkg: python-ipip-ipdb 1.5.0-1 Added: python-ipip-ipdb/ python-ipip-ipdb/repos/ python-ipip-ipdb/trunk/ python-ipip-ipdb/trunk/PKGBUILD ----------+ PKGBUILD | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) Added: python-ipip-ipdb/trunk/PKGBUILD =================================================================== --- python-ipip-ipdb/trunk/PKGBUILD (rev 0) +++ python-ipip-ipdb/trunk/PKGBUILD 2021-02-04 12:25:26 UTC (rev 844438) @@ -0,0 +1,30 @@ +# Maintainer: Felix Yan <[email protected]> + +pkgname=python-ipip-ipdb +pkgver=1.5.0 +pkgrel=1 +pkgdesc="IPIP.net officially supported IP database ipdb format parsing library" +url="https://github.com/ipipdotnet/ipdb-python" +license=('Apache') +arch=('any') +depends=('python') +makedepends=('python-setuptools') +conflicts=('python-ipdb') +source=("https://pypi.io/packages/source/i/ipip-ipdb/ipip-ipdb-$pkgver.tar.gz") +sha512sums=('748e946325a2f15c4e2806b8893f384c1fbdf62bbb538d99ccefab6489125704831f7eb888da070e3c79dc8b2b2deeafb35f6e1f096ea1733febcfb0db04d6e4') + +build() { + cd ipip-ipdb-$pkgver + python setup.py build +} + +check() { + cd ipip-ipdb-$pkgver + # TODO: Switch to github source after https://github.com/ipipdotnet/ipdb-python/issues/7 is fixed + # python ipdb_test.py +} + +package() { + cd ipip-ipdb-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 +}
