Date: Thursday, April 6, 2023 @ 13:39:14
Author: felixonmars
Revision: 1438972
archrelease: copy trunk to community-staging-any
Added:
python-ipip-ipdb/repos/community-staging-any/
python-ipip-ipdb/repos/community-staging-any/PKGBUILD
(from rev 1438971, python-ipip-ipdb/trunk/PKGBUILD)
----------+
PKGBUILD | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
Copied: python-ipip-ipdb/repos/community-staging-any/PKGBUILD (from rev
1438971, python-ipip-ipdb/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-06 13:39:14 UTC (rev 1438972)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-ipip-ipdb
+pkgver=1.6.0
+pkgrel=3
+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=('88353892920e3c97a12417e52fcee23919f351d9dae22d5fbdba964d6fad528103e18b9fe736cc73208dad1a68ec59d7bc6f94d87772845985e3ca6f8b3a2860')
+
+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
+}