[arch-commits] Commit in python2-ipaddr/repos (2 files)

Antonio Rojas arojas at archlinux.org
Wed Oct 10 06:20:23 UTC 2018


    Date: Wednesday, October 10, 2018 @ 06:20:23
  Author: arojas
Revision: 392071

archrelease: copy trunk to community-testing-any

Added:
  python2-ipaddr/repos/community-testing-any/
  python2-ipaddr/repos/community-testing-any/PKGBUILD
    (from rev 392070, python2-ipaddr/trunk/PKGBUILD)

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

Copied: python2-ipaddr/repos/community-testing-any/PKGBUILD (from rev 392070, python2-ipaddr/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2018-10-10 06:20:23 UTC (rev 392071)
@@ -0,0 +1,30 @@
+# Maintainer:
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Jonathan Liu <net147 at gmail.com>
+
+pkgname='python2-ipaddr'
+pkgver=2.2.0
+pkgrel=1
+pkgdesc="An IPv4/IPv6 manipulation library in Python"
+arch=('any')
+url="http://code.google.com/p/ipaddr-py/"
+license=('APACHE')
+depends=('python2')
+makedepends=('python2-setuptools')
+source=("https://pypi.python.org/packages/source/i/ipaddr/ipaddr-${pkgver}.tar.gz")
+sha512sums=('5adb117c44e6e5dbdb9e96543aa7a34f35b4a4ec9baa163a25448058c34091bf4019d24f0250928291e4d4bc97dcdf75865daef739e2d94f98cc584e6e6c50dd')
+
+prepare() {
+  cd ipaddr-$pkgver
+  sed -e 's|/usr/bin/python|/usr/bin/python2|' -i ipaddr.py
+}
+
+check() {
+  cd ipaddr-$pkgver
+  python2 ipaddr_test.py
+}
+
+package() {
+  cd ipaddr-$pkgver
+  python2 setup.py install --root="${pkgdir}" -O1
+}



More information about the arch-commits mailing list