[arch-commits] Commit in python2-ipaddr/trunk (PKGBUILD)

Antonio Rojas arojas at archlinux.org
Wed Oct 10 06:19:52 UTC 2018


    Date: Wednesday, October 10, 2018 @ 06:19:51
  Author: arojas
Revision: 392070

Update to 2.2.0

Modified:
  python2-ipaddr/trunk/PKGBUILD

----------+
 PKGBUILD |   20 +++++++++++++-------
 1 file changed, 13 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-10-10 05:59:32 UTC (rev 392069)
+++ PKGBUILD	2018-10-10 06:19:51 UTC (rev 392070)
@@ -1,9 +1,10 @@
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
-# Maintainer: Jonathan Liu <net147 at gmail.com>
+# Maintainer:
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Jonathan Liu <net147 at gmail.com>
 
 pkgname='python2-ipaddr'
-pkgver=2.1.11
-pkgrel=2
+pkgver=2.2.0
+pkgrel=1
 pkgdesc="An IPv4/IPv6 manipulation library in Python"
 arch=('any')
 url="http://code.google.com/p/ipaddr-py/"
@@ -11,14 +12,19 @@
 depends=('python2')
 makedepends=('python2-setuptools')
 source=("https://pypi.python.org/packages/source/i/ipaddr/ipaddr-${pkgver}.tar.gz")
-sha512sums=('a97b0f760f0d7fac549e5edf17b644c966a8858c145b8f9472ddc8bf4805c9d537f6f8755e3716d78b729b87e84149f8b73c7f98c0deee4fbf266ccb7a206bc6')
+sha512sums=('5adb117c44e6e5dbdb9e96543aa7a34f35b4a4ec9baa163a25448058c34091bf4019d24f0250928291e4d4bc97dcdf75865daef739e2d94f98cc584e6e6c50dd')
 
+prepare() {
+  cd ipaddr-$pkgver
+  sed -e 's|/usr/bin/python|/usr/bin/python2|' -i ipaddr.py
+}
+
 check() {
-  cd "${srcdir}/ipaddr-${pkgver}"
+  cd ipaddr-$pkgver
   python2 ipaddr_test.py
 }
 
 package() {
-  cd "${srcdir}/ipaddr-${pkgver}"
+  cd ipaddr-$pkgver
   python2 setup.py install --root="${pkgdir}" -O1
 }



More information about the arch-commits mailing list