Date: Wednesday, July 22, 2015 @ 08:35:16 Author: fyan Revision: 137261
upgpkg: python2-netlib 0.13-1 Modified: python2-netlib/trunk/PKGBUILD ----------+ PKGBUILD | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2015-07-22 06:17:10 UTC (rev 137260) +++ PKGBUILD 2015-07-22 06:35:16 UTC (rev 137261) @@ -3,18 +3,28 @@ # Contributor: Nicolas Pouillard https://nicolaspouillard.fr pkgname=python2-netlib -pkgver=0.12.1 +pkgver=0.13 pkgrel=1 pkgdesc="A collection of network utilities used by pathod and mitmproxy" url="https://github.com/mitmproxy/netlib" license=('MIT') -arch=('i686' 'x86_64') +arch=('any') depends=('python2-passlib' 'python2-pyasn1' 'python2-pyopenssl' 'python2-hpack') makedepends=('python2-setuptools') checkdepends=('python2-nose' 'python2-mock' 'pathod') source=("http://pypi.python.org/packages/source/n/netlib/netlib-$pkgver.tar.gz") -sha256sums=('090ccaa44f4369f0aa98a831e021277bcd45fdf7d7f00af282073cc7343ce79b') +sha256sums=('4360493c145b391d87b125c5ca335943879309e1cea660f5d9f02b41511fa942') +prepare() { + cd netlib-$pkgver + + # Use system certificate store + sed -e '/"certifi"/d' -i setup.py + sed -e '/import certifi/d' \ + -e 's|certifi.where()|"/etc/ssl/certs/ca-certificates.crt"|' \ + -i netlib/tcp.py +} + build() { cd "$srcdir/netlib-$pkgver" python2 setup.py build @@ -30,4 +40,6 @@ python2 setup.py install -O1 --skip-build --root="$pkgdir" install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + mv "$pkgdir/usr/lib/python2.7/site-packages/"{test,netlib/} }
