[arch-commits] Commit in python-ipip-ipdb/repos (community-any community-any/PKGBUILD)

Felix Yan felixonmars at archlinux.org
Thu Feb 4 12:25:36 UTC 2021


    Date: Thursday, February 4, 2021 @ 12:25:36
  Author: felixonmars
Revision: 844439

archrelease: copy trunk to community-any

Added:
  python-ipip-ipdb/repos/community-any/
  python-ipip-ipdb/repos/community-any/PKGBUILD
    (from rev 844438, python-ipip-ipdb/trunk/PKGBUILD)

----------+
 PKGBUILD |   30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

Copied: python-ipip-ipdb/repos/community-any/PKGBUILD (from rev 844438, python-ipip-ipdb/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2021-02-04 12:25:36 UTC (rev 844439)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+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
+}


More information about the arch-commits mailing list