Date: Wednesday, February 14, 2018 @ 14:02:51
  Author: dvzrv
Revision: 294321

upgpkg: python-inet_diag 0.2.1-3

Rebuild for community. Fixing setup.py shebang in prepare().

Modified:
  python-inet_diag/trunk/PKGBUILD

----------+
 PKGBUILD |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2018-02-14 13:58:55 UTC (rev 294320)
+++ PKGBUILD    2018-02-14 14:02:51 UTC (rev 294321)
@@ -4,7 +4,7 @@
 pkgbase=python-inet_diag
 pkgname=('python-inet_diag' 'python2-inet_diag')
 pkgver=0.2.1
-pkgrel=2
+pkgrel=3
 pkgdesc="Python bindings for the inet_diag kernel interface"
 arch=('x86_64')
 
url="https://git.kernel.org/pub/scm/libs/python/python-inet_diag/python-inet_diag.git/";
@@ -14,8 +14,10 @@
 
sha512sums=('fe9c5a51d0b29abdb765990db37ab6f399aa5f46fa068655892181fea413d41a07486af7509540518a765d03fb4981a8a8784e5aa8b0367bb65bc36ef136be32')
 
 prepare() {
-  cp -a "${pkgname[0]}-${pkgver}" "${pkgname[1]}-${pkgver}"
-  cd "${pkgname[1]}-${pkgver}"
+  cp -av "${pkgname[0]}-${pkgver}" "${pkgname[1]}-${pkgver}"
+  cd "${pkgname[0]}-${pkgver}"
+  sed -e '1s/python2/python/' -i setup.py
+  cd ../"${pkgname[1]}-${pkgver}"
   sed -e '1s/python/&2/' -i *.py
 }
 

Reply via email to