Date: Saturday, April 7, 2018 @ 14:44:48
  Author: anthraxx
Revision: 314851

upgpkg: python-pcapy 0.11.3-1

Modified:
  python-pcapy/trunk/PKGBUILD

----------+
 PKGBUILD |   15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2018-04-07 14:40:27 UTC (rev 314850)
+++ PKGBUILD    2018-04-07 14:44:48 UTC (rev 314851)
@@ -4,7 +4,7 @@
 _pyname=pcapy
 pkgbase=python-pcapy
 pkgname=('python-pcapy' 'python2-pcapy')
-pkgver=0.11.1
+pkgver=0.11.3
 pkgrel=1
 pkgdesc='Extension module that interfaces with the libpcap packet capture 
library'
 url='https://github.com/CoreSecurity/pcapy'
@@ -12,19 +12,18 @@
 license=('Apache')
 makedepends=('python-setuptools' 'python2-setuptools' 'libpcap')
 
source=(${pkgbase}-${pkgver}.tar.gz::https://github.com/CoreSecurity/pcapy/archive/${pkgver}.tar.gz)
-sha512sums=('60eebbeae84da33d7bd2eb2398687007a305e8986fcc183d8061fa50bbc0cdf9a66c17461a32a652ca39952dd0935b164bd98a200f82ffef00ffaa55409522a3')
+sha512sums=('1fb385e9de757346876cc5a4daf5399380e5e41632c4d9b02385833b55396342d082e5e86a284f7d1bf65eda886cc9aa1d324e77fabad7f8ca6731837f03f08a')
 
 prepare() {
-  sed '/data_files/,/pcapytests/d' -i ${_pyname}-${pkgver}/setup.py
   cp -ra ${_pyname}-${pkgver}{,-py2}
 }
 
 build() {
-  msg2 "Building python..."
+  msg2 'Building python...'
   (cd ${_pyname}-${pkgver}
     python setup.py build
   )
-  msg2 "Building python2..."
+  msg2 'Building python2...'
   (cd ${_pyname}-${pkgver}-py2
     python2 setup.py build
   )
@@ -31,13 +30,13 @@
 }
 
 check() {
-  msg2 "Checking python..."
+  msg2 'Checking python...'
   (cd ${_pyname}-${pkgver}/tests
     local PYTHONVERSION="$(python -c 'import sys; 
print("{}.{}".format(sys.version_info.major, sys.version_info.minor))')"
     PYTHONPATH="../build/lib.linux-${CARCH}-${PYTHONVERSION}" \
       python pcapytests.py
   )
-  msg2 "Checking python2..."
+  msg2 'Checking python2...'
   (cd ${_pyname}-${pkgver}-py2/tests
     local PYTHONVERSION="$(python2 -c 'import sys; 
print("{}.{}".format(sys.version_info.major, sys.version_info.minor))')"
     PYTHONPATH="../build/lib.linux-${CARCH}-${PYTHONVERSION}" \
@@ -50,6 +49,7 @@
   cd ${_pyname}-${pkgver}
   python setup.py install -O1 --root="${pkgdir}" --skip-build
   install -Dm 644 pcapy.html ChangeLog -t "${pkgdir}/usr/share/doc/${pkgname}"
+  rm -r "${pkgdir}/usr/share/doc/pcapy"
 }
 
 package_python2-pcapy() {
@@ -57,6 +57,7 @@
   cd ${_pyname}-${pkgver}-py2
   python2 setup.py install -O1 --root="${pkgdir}" --skip-build
   install -Dm 644 pcapy.html ChangeLog -t "${pkgdir}/usr/share/doc/${pkgname}"
+  rm -r "${pkgdir}/usr/share/doc/pcapy"
 }
 
 # vim: ts=2 sw=2 et:

Reply via email to