[arch-commits] Commit in python2-netlib/repos/community-any (PKGBUILD PKGBUILD)

2016-03-31 Thread Felix Yan
Date: Thursday, March 31, 2016 @ 08:07:21
  Author: fyan
Revision: 169007

archrelease: copy trunk to community-any

Added:
  python2-netlib/repos/community-any/PKGBUILD
(from rev 169006, python2-netlib/trunk/PKGBUILD)
Deleted:
  python2-netlib/repos/community-any/PKGBUILD

--+
 PKGBUILD |   98 +++--
 1 file changed, 50 insertions(+), 48 deletions(-)

Deleted: PKGBUILD
===
--- PKGBUILD2016-03-31 06:06:54 UTC (rev 169006)
+++ PKGBUILD2016-03-31 06:07:21 UTC (rev 169007)
@@ -1,48 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan 
-# Contributor: Nicolas Pouillard https://nicolaspouillard.fr
-
-pkgname=python2-netlib
-pkgver=0.16
-pkgrel=2
-pkgdesc="A collection of network utilities used by pathod and mitmproxy"
-url="https://github.com/mitmproxy/netlib;
-license=('MIT')
-arch=('any')
-depends=('python2-passlib' 'python2-pyasn1' 'python2-pyopenssl' 
'python2-hpack' 'python2-hyperframe' 'python2-six')
-makedepends=('python2-setuptools')
-checkdepends=('python2-mock' 'python2-pytest-runner')
-source=("http://pypi.python.org/packages/source/n/netlib/netlib-$pkgver.tar.gz;)
-sha256sums=('c70ed1915a5662c9ffce4dc97d143209e009cf0035a2f692031a6c47e87e6002')
-
-prepare() {
-  cd netlib-$pkgver
-
-  sed -i 's/cryptography>=1.2.2, <1.3/cryptography>=1.2.2, <1.4/' setup.py
-
-  # Use system certificate store, and system ssl.match_hostname
-  sed -e '/certifi/d' \
-  -e '/backports.ssl_match_hostname/d' \
-  -i setup.py
-  sed -e '/import certifi/d' \
-  -e 's|certifi.where()|"/etc/ssl/certs/ca-certificates.crt"|' \
-  -e 's/from backports import ssl_match_hostname/import ssl as 
ssl_match_hostname/' \
-  -i netlib/tcp.py
-}  
-
-build() {
-  cd "$srcdir/netlib-$pkgver"
-  python2 setup.py build
-}
-
-check() {
-  cd "$srcdir/netlib-$pkgver"
-  python2 setup.py ptr
-}
-
-package() {
-  cd "$srcdir/netlib-$pkgver"
-  python2 setup.py install -O1 --skip-build --root="$pkgdir"
-
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}

Copied: python2-netlib/repos/community-any/PKGBUILD (from rev 169006, 
python2-netlib/trunk/PKGBUILD)
===
--- PKGBUILD(rev 0)
+++ PKGBUILD2016-03-31 06:07:21 UTC (rev 169007)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Nicolas Pouillard https://nicolaspouillard.fr
+
+pkgname=python2-netlib
+pkgver=0.16
+pkgrel=3
+pkgdesc="A collection of network utilities used by pathod and mitmproxy"
+url="https://github.com/mitmproxy/netlib;
+license=('MIT')
+arch=('any')
+depends=('python2-passlib' 'python2-pyasn1' 'python2-pyopenssl' 
'python2-hpack' 'python2-hyperframe' 'python2-six')
+makedepends=('python2-setuptools')
+checkdepends=('python2-mock' 'python2-pytest-runner')
+source=("http://pypi.python.org/packages/source/n/netlib/netlib-$pkgver.tar.gz;)
+sha256sums=('c70ed1915a5662c9ffce4dc97d143209e009cf0035a2f692031a6c47e87e6002')
+
+prepare() {
+  cd netlib-$pkgver
+
+  sed -e 's/cryptography>=1.2.2, <1.3/cryptography>=1.2.2, <1.4/' \
+  -e 's/pyOpenSSL>=0.15.1, <0.16/pyOpenSSL>=0.15.1, <17/' \
+  -i setup.py
+
+  # Use system certificate store, and system ssl.match_hostname
+  sed -e '/certifi/d' \
+  -e '/backports.ssl_match_hostname/d' \
+  -i setup.py
+  sed -e '/import certifi/d' \
+  -e 's|certifi.where()|"/etc/ssl/certs/ca-certificates.crt"|' \
+  -e 's/from backports import ssl_match_hostname/import ssl as 
ssl_match_hostname/' \
+  -i netlib/tcp.py
+}  
+
+build() {
+  cd "$srcdir/netlib-$pkgver"
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/netlib-$pkgver"
+  python2 setup.py ptr
+}
+
+package() {
+  cd "$srcdir/netlib-$pkgver"
+  python2 setup.py install -O1 --skip-build --root="$pkgdir"
+
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}


[arch-commits] Commit in python2-netlib/repos/community-any (PKGBUILD PKGBUILD)

2016-03-18 Thread Felix Yan
Date: Saturday, March 19, 2016 @ 04:42:29
  Author: fyan
Revision: 167618

archrelease: copy trunk to community-any

Added:
  python2-netlib/repos/community-any/PKGBUILD
(from rev 167617, python2-netlib/trunk/PKGBUILD)
Deleted:
  python2-netlib/repos/community-any/PKGBUILD

--+
 PKGBUILD |   94 +++--
 1 file changed, 48 insertions(+), 46 deletions(-)

Deleted: PKGBUILD
===
--- PKGBUILD2016-03-19 03:41:28 UTC (rev 167617)
+++ PKGBUILD2016-03-19 03:42:29 UTC (rev 167618)
@@ -1,46 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan 
-# Contributor: Nicolas Pouillard https://nicolaspouillard.fr
-
-pkgname=python2-netlib
-pkgver=0.16
-pkgrel=1
-pkgdesc="A collection of network utilities used by pathod and mitmproxy"
-url="https://github.com/mitmproxy/netlib;
-license=('MIT')
-arch=('any')
-depends=('python2-passlib' 'python2-pyasn1' 'python2-pyopenssl' 
'python2-hpack' 'python2-hyperframe' 'python2-six')
-makedepends=('python2-setuptools')
-checkdepends=('python2-mock' 'python2-pytest-runner')
-source=("http://pypi.python.org/packages/source/n/netlib/netlib-$pkgver.tar.gz;)
-sha256sums=('c70ed1915a5662c9ffce4dc97d143209e009cf0035a2f692031a6c47e87e6002')
-
-prepare() {
-  cd netlib-$pkgver
-
-  # Use system certificate store, and system ssl.match_hostname
-  sed -e '/certifi/d' \
-  -e '/backports.ssl_match_hostname/d' \
-  -i setup.py
-  sed -e '/import certifi/d' \
-  -e 's|certifi.where()|"/etc/ssl/certs/ca-certificates.crt"|' \
-  -e 's/from backports import ssl_match_hostname/import ssl as 
ssl_match_hostname/' \
-  -i netlib/tcp.py
-}  
-
-build() {
-  cd "$srcdir/netlib-$pkgver"
-  python2 setup.py build
-}
-
-check() {
-  cd "$srcdir/netlib-$pkgver"
-  python2 setup.py ptr
-}
-
-package() {
-  cd "$srcdir/netlib-$pkgver"
-  python2 setup.py install -O1 --skip-build --root="$pkgdir"
-
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}

Copied: python2-netlib/repos/community-any/PKGBUILD (from rev 167617, 
python2-netlib/trunk/PKGBUILD)
===
--- PKGBUILD(rev 0)
+++ PKGBUILD2016-03-19 03:42:29 UTC (rev 167618)
@@ -0,0 +1,48 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Nicolas Pouillard https://nicolaspouillard.fr
+
+pkgname=python2-netlib
+pkgver=0.16
+pkgrel=2
+pkgdesc="A collection of network utilities used by pathod and mitmproxy"
+url="https://github.com/mitmproxy/netlib;
+license=('MIT')
+arch=('any')
+depends=('python2-passlib' 'python2-pyasn1' 'python2-pyopenssl' 
'python2-hpack' 'python2-hyperframe' 'python2-six')
+makedepends=('python2-setuptools')
+checkdepends=('python2-mock' 'python2-pytest-runner')
+source=("http://pypi.python.org/packages/source/n/netlib/netlib-$pkgver.tar.gz;)
+sha256sums=('c70ed1915a5662c9ffce4dc97d143209e009cf0035a2f692031a6c47e87e6002')
+
+prepare() {
+  cd netlib-$pkgver
+
+  sed -i 's/cryptography>=1.2.2, <1.3/cryptography>=1.2.2, <1.4/' setup.py
+
+  # Use system certificate store, and system ssl.match_hostname
+  sed -e '/certifi/d' \
+  -e '/backports.ssl_match_hostname/d' \
+  -i setup.py
+  sed -e '/import certifi/d' \
+  -e 's|certifi.where()|"/etc/ssl/certs/ca-certificates.crt"|' \
+  -e 's/from backports import ssl_match_hostname/import ssl as 
ssl_match_hostname/' \
+  -i netlib/tcp.py
+}  
+
+build() {
+  cd "$srcdir/netlib-$pkgver"
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/netlib-$pkgver"
+  python2 setup.py ptr
+}
+
+package() {
+  cd "$srcdir/netlib-$pkgver"
+  python2 setup.py install -O1 --skip-build --root="$pkgdir"
+
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}


[arch-commits] Commit in python2-netlib/repos/community-any (PKGBUILD PKGBUILD)

2016-02-09 Thread Felix Yan
Date: Tuesday, February 9, 2016 @ 10:06:37
  Author: fyan
Revision: 160987

archrelease: copy trunk to community-any

Added:
  python2-netlib/repos/community-any/PKGBUILD
(from rev 160986, python2-netlib/trunk/PKGBUILD)
Deleted:
  python2-netlib/repos/community-any/PKGBUILD

--+
 PKGBUILD |  104 +++--
 1 file changed, 53 insertions(+), 51 deletions(-)

Deleted: PKGBUILD
===
--- PKGBUILD2016-02-09 09:06:19 UTC (rev 160986)
+++ PKGBUILD2016-02-09 09:06:37 UTC (rev 160987)
@@ -1,51 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan 
-# Contributor: Nicolas Pouillard https://nicolaspouillard.fr
-
-pkgname=python2-netlib
-pkgver=0.15.1
-pkgrel=2
-pkgdesc="A collection of network utilities used by pathod and mitmproxy"
-url="https://github.com/mitmproxy/netlib;
-license=('MIT')
-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=('f55ad129b770fcf82786fb59d3e4f4291ea4c6dca4e4850bce1977bd9e99492e')
-
-prepare() {
-  cd netlib-$pkgver
-
-  # Allow cryptography 1.2.*
-  sed -i 's/cryptography>=1.1.1, <1.2/cryptography>=1.1.1, <1.3/' setup.py
-
-  # Use system certificate store, and system ssl.match_hostname
-  sed -e '/certifi/d' \
-  -e '/backports.ssl_match_hostname/d' \
-  -i setup.py
-  sed -e '/import certifi/d' \
-  -e 's|certifi.where()|"/etc/ssl/certs/ca-certificates.crt"|' \
-  -e 's/from backports import ssl_match_hostname/import ssl as 
ssl_match_hostname/' \
-  -i netlib/tcp.py
-}  
-
-build() {
-  cd "$srcdir/netlib-$pkgver"
-  python2 setup.py build
-}
-
-check() {
-  cd "$srcdir/netlib-$pkgver"
-  nosetests2
-}
-
-package() {
-  cd "$srcdir/netlib-$pkgver"
-  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/}
-}

Copied: python2-netlib/repos/community-any/PKGBUILD (from rev 160986, 
python2-netlib/trunk/PKGBUILD)
===
--- PKGBUILD(rev 0)
+++ PKGBUILD2016-02-09 09:06:37 UTC (rev 160987)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Nicolas Pouillard https://nicolaspouillard.fr
+
+pkgname=python2-netlib
+pkgver=0.15.1
+pkgrel=3
+pkgdesc="A collection of network utilities used by pathod and mitmproxy"
+url="https://github.com/mitmproxy/netlib;
+license=('MIT')
+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=('f55ad129b770fcf82786fb59d3e4f4291ea4c6dca4e4850bce1977bd9e99492e')
+
+prepare() {
+  cd netlib-$pkgver
+
+  # Allow cryptography 1.2.*, hpack 2.1.*
+  sed -e 's/cryptography>=1.1.1, <1.2/cryptography>=1.1.1, <1.3/' \
+  -e 's/hpack>=2.0.1, <2.1/hpack>=2.0.1, <3.0/' \
+  -i setup.py
+
+  # Use system certificate store, and system ssl.match_hostname
+  sed -e '/certifi/d' \
+  -e '/backports.ssl_match_hostname/d' \
+  -i setup.py
+  sed -e '/import certifi/d' \
+  -e 's|certifi.where()|"/etc/ssl/certs/ca-certificates.crt"|' \
+  -e 's/from backports import ssl_match_hostname/import ssl as 
ssl_match_hostname/' \
+  -i netlib/tcp.py
+}  
+
+build() {
+  cd "$srcdir/netlib-$pkgver"
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/netlib-$pkgver"
+  nosetests2
+}
+
+package() {
+  cd "$srcdir/netlib-$pkgver"
+  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/}
+}


[arch-commits] Commit in python2-netlib/repos/community-any (PKGBUILD PKGBUILD)

2016-01-10 Thread Felix Yan
Date: Sunday, January 10, 2016 @ 17:37:01
  Author: fyan
Revision: 155876

archrelease: copy trunk to community-any

Added:
  python2-netlib/repos/community-any/PKGBUILD
(from rev 155875, python2-netlib/trunk/PKGBUILD)
Deleted:
  python2-netlib/repos/community-any/PKGBUILD

--+
 PKGBUILD |   99 +++--
 1 file changed, 51 insertions(+), 48 deletions(-)

Deleted: PKGBUILD
===
--- PKGBUILD2016-01-10 16:36:39 UTC (rev 155875)
+++ PKGBUILD2016-01-10 16:37:01 UTC (rev 155876)
@@ -1,48 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan 
-# Contributor: Nicolas Pouillard https://nicolaspouillard.fr
-
-pkgname=python2-netlib
-pkgver=0.15.1
-pkgrel=1
-pkgdesc="A collection of network utilities used by pathod and mitmproxy"
-url="https://github.com/mitmproxy/netlib;
-license=('MIT')
-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=('f55ad129b770fcf82786fb59d3e4f4291ea4c6dca4e4850bce1977bd9e99492e')
-
-prepare() {
-  cd netlib-$pkgver
-
-  # Use system certificate store, and system ssl.match_hostname
-  sed -e '/certifi/d' \
-  -e '/backports.ssl_match_hostname/d' \
-  -i setup.py
-  sed -e '/import certifi/d' \
-  -e 's|certifi.where()|"/etc/ssl/certs/ca-certificates.crt"|' \
-  -e 's/from backports import ssl_match_hostname/import ssl as 
ssl_match_hostname/' \
-  -i netlib/tcp.py
-}  
-
-build() {
-  cd "$srcdir/netlib-$pkgver"
-  python2 setup.py build
-}
-
-check() {
-  cd "$srcdir/netlib-$pkgver"
-  nosetests2
-}
-
-package() {
-  cd "$srcdir/netlib-$pkgver"
-  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/}
-}

Copied: python2-netlib/repos/community-any/PKGBUILD (from rev 155875, 
python2-netlib/trunk/PKGBUILD)
===
--- PKGBUILD(rev 0)
+++ PKGBUILD2016-01-10 16:37:01 UTC (rev 155876)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Nicolas Pouillard https://nicolaspouillard.fr
+
+pkgname=python2-netlib
+pkgver=0.15.1
+pkgrel=2
+pkgdesc="A collection of network utilities used by pathod and mitmproxy"
+url="https://github.com/mitmproxy/netlib;
+license=('MIT')
+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=('f55ad129b770fcf82786fb59d3e4f4291ea4c6dca4e4850bce1977bd9e99492e')
+
+prepare() {
+  cd netlib-$pkgver
+
+  # Allow cryptography 1.2.*
+  sed -i 's/cryptography>=1.1.1, <1.2/cryptography>=1.1.1, <1.3/' setup.py
+
+  # Use system certificate store, and system ssl.match_hostname
+  sed -e '/certifi/d' \
+  -e '/backports.ssl_match_hostname/d' \
+  -i setup.py
+  sed -e '/import certifi/d' \
+  -e 's|certifi.where()|"/etc/ssl/certs/ca-certificates.crt"|' \
+  -e 's/from backports import ssl_match_hostname/import ssl as 
ssl_match_hostname/' \
+  -i netlib/tcp.py
+}  
+
+build() {
+  cd "$srcdir/netlib-$pkgver"
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/netlib-$pkgver"
+  nosetests2
+}
+
+package() {
+  cd "$srcdir/netlib-$pkgver"
+  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/}
+}


[arch-commits] Commit in python2-netlib/repos/community-any (PKGBUILD PKGBUILD)

2015-12-25 Thread Felix Yan
Date: Friday, December 25, 2015 @ 16:54:57
  Author: fyan
Revision: 154526

archrelease: copy trunk to community-any

Added:
  python2-netlib/repos/community-any/PKGBUILD
(from rev 154525, python2-netlib/trunk/PKGBUILD)
Deleted:
  python2-netlib/repos/community-any/PKGBUILD

--+
 PKGBUILD |   96 ++---
 1 file changed, 48 insertions(+), 48 deletions(-)

Deleted: PKGBUILD
===
--- PKGBUILD2015-12-25 15:54:39 UTC (rev 154525)
+++ PKGBUILD2015-12-25 15:54:57 UTC (rev 154526)
@@ -1,48 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan 
-# Contributor: Nicolas Pouillard https://nicolaspouillard.fr
-
-pkgname=python2-netlib
-pkgver=0.15
-pkgrel=1
-pkgdesc="A collection of network utilities used by pathod and mitmproxy"
-url="https://github.com/mitmproxy/netlib;
-license=('MIT')
-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=('5f5c02724a32f4d44401a9dccaf7d3bdf077a352d11dc5131bb61fb24299afa5')
-
-prepare() {
-  cd netlib-$pkgver
-
-  # Use system certificate store, and system ssl.match_hostname
-  sed -e '/certifi/d' \
-  -e '/backports.ssl_match_hostname/d' \
-  -i setup.py
-  sed -e '/import certifi/d' \
-  -e 's|certifi.where()|"/etc/ssl/certs/ca-certificates.crt"|' \
-  -e 's/from backports import ssl_match_hostname/import ssl as 
ssl_match_hostname/' \
-  -i netlib/tcp.py
-}  
-
-build() {
-  cd "$srcdir/netlib-$pkgver"
-  python2 setup.py build
-}
-
-check() {
-  cd "$srcdir/netlib-$pkgver"
-  nosetests2
-}
-
-package() {
-  cd "$srcdir/netlib-$pkgver"
-  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/}
-}

Copied: python2-netlib/repos/community-any/PKGBUILD (from rev 154525, 
python2-netlib/trunk/PKGBUILD)
===
--- PKGBUILD(rev 0)
+++ PKGBUILD2015-12-25 15:54:57 UTC (rev 154526)
@@ -0,0 +1,48 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Nicolas Pouillard https://nicolaspouillard.fr
+
+pkgname=python2-netlib
+pkgver=0.15.1
+pkgrel=1
+pkgdesc="A collection of network utilities used by pathod and mitmproxy"
+url="https://github.com/mitmproxy/netlib;
+license=('MIT')
+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=('f55ad129b770fcf82786fb59d3e4f4291ea4c6dca4e4850bce1977bd9e99492e')
+
+prepare() {
+  cd netlib-$pkgver
+
+  # Use system certificate store, and system ssl.match_hostname
+  sed -e '/certifi/d' \
+  -e '/backports.ssl_match_hostname/d' \
+  -i setup.py
+  sed -e '/import certifi/d' \
+  -e 's|certifi.where()|"/etc/ssl/certs/ca-certificates.crt"|' \
+  -e 's/from backports import ssl_match_hostname/import ssl as 
ssl_match_hostname/' \
+  -i netlib/tcp.py
+}  
+
+build() {
+  cd "$srcdir/netlib-$pkgver"
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/netlib-$pkgver"
+  nosetests2
+}
+
+package() {
+  cd "$srcdir/netlib-$pkgver"
+  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/}
+}


[arch-commits] Commit in python2-netlib/repos/community-any (PKGBUILD PKGBUILD)

2015-11-06 Thread Felix Yan
Date: Saturday, November 7, 2015 @ 06:12:26
  Author: fyan
Revision: 146336

archrelease: copy trunk to community-any

Added:
  python2-netlib/repos/community-any/PKGBUILD
(from rev 146335, python2-netlib/trunk/PKGBUILD)
Deleted:
  python2-netlib/repos/community-any/PKGBUILD

--+
 PKGBUILD |   93 +++--
 1 file changed, 48 insertions(+), 45 deletions(-)

Deleted: PKGBUILD
===
--- PKGBUILD2015-11-07 05:12:06 UTC (rev 146335)
+++ PKGBUILD2015-11-07 05:12:26 UTC (rev 146336)
@@ -1,45 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan 
-# Contributor: Nicolas Pouillard https://nicolaspouillard.fr
-
-pkgname=python2-netlib
-pkgver=0.13.1
-pkgrel=1
-pkgdesc="A collection of network utilities used by pathod and mitmproxy"
-url="https://github.com/mitmproxy/netlib;
-license=('MIT')
-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=('f2b986ed2fa0125a88975d3f904a111c95b2925c3f553f7b1fc991f25bf4915b')
-
-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
-}
-
-check() {
-  cd "$srcdir/netlib-$pkgver"
-  nosetests2
-}
-
-package() {
-  cd "$srcdir/netlib-$pkgver"
-  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/}
-}

Copied: python2-netlib/repos/community-any/PKGBUILD (from rev 146335, 
python2-netlib/trunk/PKGBUILD)
===
--- PKGBUILD(rev 0)
+++ PKGBUILD2015-11-07 05:12:26 UTC (rev 146336)
@@ -0,0 +1,48 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Nicolas Pouillard https://nicolaspouillard.fr
+
+pkgname=python2-netlib
+pkgver=0.14.0
+pkgrel=1
+pkgdesc="A collection of network utilities used by pathod and mitmproxy"
+url="https://github.com/mitmproxy/netlib;
+license=('MIT')
+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=('cf12b0a71a493eee46fb2da284122ac363179fe0a0bc71c5c8920374aa978e75')
+
+prepare() {
+  cd netlib-$pkgver
+
+  # Use system certificate store, and system ssl.match_hostname
+  sed -e '/certifi/d' \
+  -e '/backports.ssl_match_hostname/d' \
+  -i setup.py
+  sed -e '/import certifi/d' \
+  -e 's|certifi.where()|"/etc/ssl/certs/ca-certificates.crt"|' \
+  -e 's/from backports import ssl_match_hostname/import ssl as 
ssl_match_hostname/' \
+  -i netlib/tcp.py
+}  
+
+build() {
+  cd "$srcdir/netlib-$pkgver"
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/netlib-$pkgver"
+  nosetests2
+}
+
+package() {
+  cd "$srcdir/netlib-$pkgver"
+  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/}
+}


[arch-commits] Commit in python2-netlib/repos/community-any (PKGBUILD PKGBUILD)

2015-07-23 Thread Felix Yan
Date: Thursday, July 23, 2015 @ 12:00:46
  Author: fyan
Revision: 137309

archrelease: copy trunk to community-any

Added:
  python2-netlib/repos/community-any/PKGBUILD
(from rev 137308, python2-netlib/trunk/PKGBUILD)
Deleted:
  python2-netlib/repos/community-any/PKGBUILD

--+
 PKGBUILD |   90 ++---
 1 file changed, 45 insertions(+), 45 deletions(-)

Deleted: PKGBUILD
===
--- PKGBUILD2015-07-23 10:00:35 UTC (rev 137308)
+++ PKGBUILD2015-07-23 10:00:46 UTC (rev 137309)
@@ -1,45 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan felixonm...@archlinux.org
-# Contributor: Nicolas Pouillard https://nicolaspouillard.fr
-
-pkgname=python2-netlib
-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=('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=('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
-}
-
-check() {
-  cd $srcdir/netlib-$pkgver
-  nosetests2
-}
-
-package() {
-  cd $srcdir/netlib-$pkgver
-  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/}
-}

Copied: python2-netlib/repos/community-any/PKGBUILD (from rev 137308, 
python2-netlib/trunk/PKGBUILD)
===
--- PKGBUILD(rev 0)
+++ PKGBUILD2015-07-23 10:00:46 UTC (rev 137309)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Felix Yan felixonm...@archlinux.org
+# Contributor: Nicolas Pouillard https://nicolaspouillard.fr
+
+pkgname=python2-netlib
+pkgver=0.13.1
+pkgrel=1
+pkgdesc=A collection of network utilities used by pathod and mitmproxy
+url=https://github.com/mitmproxy/netlib;
+license=('MIT')
+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=('f2b986ed2fa0125a88975d3f904a111c95b2925c3f553f7b1fc991f25bf4915b')
+
+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
+}
+
+check() {
+  cd $srcdir/netlib-$pkgver
+  nosetests2
+}
+
+package() {
+  cd $srcdir/netlib-$pkgver
+  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/}
+}


[arch-commits] Commit in python2-netlib/repos/community-any (PKGBUILD PKGBUILD)

2015-07-22 Thread Felix Yan
Date: Wednesday, July 22, 2015 @ 08:35:30
  Author: fyan
Revision: 137262

archrelease: copy trunk to community-any

Added:
  python2-netlib/repos/community-any/PKGBUILD
(from rev 137261, python2-netlib/trunk/PKGBUILD)
Deleted:
  python2-netlib/repos/community-any/PKGBUILD

--+
 PKGBUILD |   78 +++--
 1 file changed, 45 insertions(+), 33 deletions(-)

Deleted: PKGBUILD
===
--- PKGBUILD2015-07-22 06:35:16 UTC (rev 137261)
+++ PKGBUILD2015-07-22 06:35:30 UTC (rev 137262)
@@ -1,33 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan felixonm...@archlinux.org
-# Contributor: Nicolas Pouillard https://nicolaspouillard.fr
-
-pkgname=python2-netlib
-pkgver=0.12.0
-pkgrel=1
-pkgdesc=A collection of network utilities used by pathod and mitmproxy
-url=https://github.com/mitmproxy/netlib;
-license=('MIT')
-arch=('any')
-depends=('python2-passlib' 'python2-pyasn1' 'python2-pyopenssl')
-makedepends=('python2-setuptools')
-checkdepends=('python2-nose' 'python2-mock' 'pathod')
-source=(http://pypi.python.org/packages/source/n/netlib/netlib-$pkgver.tar.gz;)
-sha256sums=('2b53b9dd611a80ba65eb5eb11bb70dfec4912e5b38fa84e30756249241012480')
-
-build() {
-  cd $srcdir/netlib-$pkgver
-  python2 setup.py build
-}
-
-check() {
-  cd $srcdir/netlib-$pkgver
-  nosetests2
-}
-
-package() {
-  cd $srcdir/netlib-$pkgver
-  python2 setup.py install -O1 --skip-build --root=$pkgdir
-
-  install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
-}

Copied: python2-netlib/repos/community-any/PKGBUILD (from rev 137261, 
python2-netlib/trunk/PKGBUILD)
===
--- PKGBUILD(rev 0)
+++ PKGBUILD2015-07-22 06:35:30 UTC (rev 137262)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Felix Yan felixonm...@archlinux.org
+# Contributor: Nicolas Pouillard https://nicolaspouillard.fr
+
+pkgname=python2-netlib
+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=('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=('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
+}
+
+check() {
+  cd $srcdir/netlib-$pkgver
+  nosetests2
+}
+
+package() {
+  cd $srcdir/netlib-$pkgver
+  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/}
+}


[arch-commits] Commit in python2-netlib/repos/community-any (PKGBUILD PKGBUILD)

2015-05-25 Thread Felix Yan
Date: Tuesday, May 26, 2015 @ 06:21:46
  Author: fyan
Revision: 134126

archrelease: copy trunk to community-any

Added:
  python2-netlib/repos/community-any/PKGBUILD
(from rev 134125, python2-netlib/trunk/PKGBUILD)
Deleted:
  python2-netlib/repos/community-any/PKGBUILD

--+
 PKGBUILD |   65 ++---
 1 file changed, 33 insertions(+), 32 deletions(-)

Deleted: PKGBUILD
===
--- PKGBUILD2015-05-26 04:21:33 UTC (rev 134125)
+++ PKGBUILD2015-05-26 04:21:46 UTC (rev 134126)
@@ -1,32 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan felixonm...@archlinux.org
-# Contributor: Nicolas Pouillard https://nicolaspouillard.fr
-
-pkgname=python2-netlib
-pkgver=0.11.2
-pkgrel=1
-pkgdesc=A collection of network utilities used by pathod and mitmproxy
-url=https://github.com/mitmproxy/netlib;
-license=('MIT')
-arch=('any')
-depends=(python2-passlib 'python2-pyasn1' 'python2-pyopenssl')
-checkdepends=('python2-nose' 'python2-mock' 'pathod')
-source=(http://pypi.python.org/packages/source/n/netlib/netlib-$pkgver.tar.gz;)
-sha256sums=('66dac408eccb528b284e6a6fa5bc52aa40d1c2a53d74179d3cb2253b3120851e')
-
-build() {
-  cd $srcdir/netlib-$pkgver
-  python2 setup.py build
-}
-
-check() {
-  cd $srcdir/netlib-$pkgver
-  nosetests2
-}
-
-package() {
-  cd $srcdir/netlib-$pkgver
-  python2 setup.py install -O1 --skip-build --root=$pkgdir
-
-  install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
-}

Copied: python2-netlib/repos/community-any/PKGBUILD (from rev 134125, 
python2-netlib/trunk/PKGBUILD)
===
--- PKGBUILD(rev 0)
+++ PKGBUILD2015-05-26 04:21:46 UTC (rev 134126)
@@ -0,0 +1,33 @@
+# $Id$
+# Maintainer: Felix Yan felixonm...@archlinux.org
+# Contributor: Nicolas Pouillard https://nicolaspouillard.fr
+
+pkgname=python2-netlib
+pkgver=0.12.0
+pkgrel=1
+pkgdesc=A collection of network utilities used by pathod and mitmproxy
+url=https://github.com/mitmproxy/netlib;
+license=('MIT')
+arch=('any')
+depends=('python2-passlib' 'python2-pyasn1' 'python2-pyopenssl')
+makedepends=('python2-setuptools')
+checkdepends=('python2-nose' 'python2-mock' 'pathod')
+source=(http://pypi.python.org/packages/source/n/netlib/netlib-$pkgver.tar.gz;)
+sha256sums=('2b53b9dd611a80ba65eb5eb11bb70dfec4912e5b38fa84e30756249241012480')
+
+build() {
+  cd $srcdir/netlib-$pkgver
+  python2 setup.py build
+}
+
+check() {
+  cd $srcdir/netlib-$pkgver
+  nosetests2
+}
+
+package() {
+  cd $srcdir/netlib-$pkgver
+  python2 setup.py install -O1 --skip-build --root=$pkgdir
+
+  install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+}


[arch-commits] Commit in python2-netlib/repos/community-any (PKGBUILD PKGBUILD)

2014-12-28 Thread Felix Yan
Date: Monday, December 29, 2014 @ 05:02:19
  Author: fyan
Revision: 124809

archrelease: copy trunk to community-any

Added:
  python2-netlib/repos/community-any/PKGBUILD
(from rev 124808, python2-netlib/trunk/PKGBUILD)
Deleted:
  python2-netlib/repos/community-any/PKGBUILD

--+
 PKGBUILD |   64 ++---
 1 file changed, 32 insertions(+), 32 deletions(-)

Deleted: PKGBUILD
===
--- PKGBUILD2014-12-29 04:01:48 UTC (rev 124808)
+++ PKGBUILD2014-12-29 04:02:19 UTC (rev 124809)
@@ -1,32 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan felixonm...@archlinux.org
-# Contributor: Nicolas Pouillard https://nicolaspouillard.fr
-
-pkgname=python2-netlib
-pkgver=0.11.1
-pkgrel=2
-pkgdesc=A collection of network utilities used by pathod and mitmproxy
-url=https://github.com/mitmproxy/netlib;
-license=('MIT')
-arch=('any')
-depends=(python2-passlib 'python2-pyasn1' 'python2-pyopenssl')
-checkdepends=('python2-nose' 'python2-mock' 'pathod')
-source=(http://pypi.python.org/packages/source/n/netlib/netlib-$pkgver.tar.gz;)
-sha256sums=('5d752d93863cbccd8bb8d7990b62903e803490fa2de12c4fb79e028e20a7d309')
-
-build() {
-  cd $srcdir/netlib-$pkgver
-  python2 setup.py build
-}
-
-check() {
-  cd $srcdir/netlib-$pkgver
-  nosetests2
-}
-
-package() {
-  cd $srcdir/netlib-$pkgver
-  python2 setup.py install -O1 --skip-build --root=$pkgdir
-
-  install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
-}

Copied: python2-netlib/repos/community-any/PKGBUILD (from rev 124808, 
python2-netlib/trunk/PKGBUILD)
===
--- PKGBUILD(rev 0)
+++ PKGBUILD2014-12-29 04:02:19 UTC (rev 124809)
@@ -0,0 +1,32 @@
+# $Id$
+# Maintainer: Felix Yan felixonm...@archlinux.org
+# Contributor: Nicolas Pouillard https://nicolaspouillard.fr
+
+pkgname=python2-netlib
+pkgver=0.11.2
+pkgrel=1
+pkgdesc=A collection of network utilities used by pathod and mitmproxy
+url=https://github.com/mitmproxy/netlib;
+license=('MIT')
+arch=('any')
+depends=(python2-passlib 'python2-pyasn1' 'python2-pyopenssl')
+checkdepends=('python2-nose' 'python2-mock' 'pathod')
+source=(http://pypi.python.org/packages/source/n/netlib/netlib-$pkgver.tar.gz;)
+sha256sums=('66dac408eccb528b284e6a6fa5bc52aa40d1c2a53d74179d3cb2253b3120851e')
+
+build() {
+  cd $srcdir/netlib-$pkgver
+  python2 setup.py build
+}
+
+check() {
+  cd $srcdir/netlib-$pkgver
+  nosetests2
+}
+
+package() {
+  cd $srcdir/netlib-$pkgver
+  python2 setup.py install -O1 --skip-build --root=$pkgdir
+
+  install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+}


[arch-commits] Commit in python2-netlib/repos/community-any (PKGBUILD PKGBUILD)

2014-12-22 Thread Felix Yan
Date: Tuesday, December 23, 2014 @ 04:21:41
  Author: fyan
Revision: 124379

archrelease: copy trunk to community-any

Added:
  python2-netlib/repos/community-any/PKGBUILD
(from rev 124378, python2-netlib/trunk/PKGBUILD)
Deleted:
  python2-netlib/repos/community-any/PKGBUILD

--+
 PKGBUILD |   64 ++---
 1 file changed, 32 insertions(+), 32 deletions(-)

Deleted: PKGBUILD
===
--- PKGBUILD2014-12-23 03:21:20 UTC (rev 124378)
+++ PKGBUILD2014-12-23 03:21:41 UTC (rev 124379)
@@ -1,32 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan felixonm...@archlinux.org
-# Contributor: Nicolas Pouillard https://nicolaspouillard.fr
-
-pkgname=python2-netlib
-pkgver=0.11.1
-pkgrel=1
-pkgdesc=A collection of network utilities used by pathod and mitmproxy
-url=https://github.com/mitmproxy/netlib;
-license=('MIT')
-arch=('any')
-depends=(python2-passlib 'python2-pyasn1' 'python2-pyopenssl')
-checkdepends=('python2-nose' 'python2-mock')  # pathod (not in repos yet)
-source=(http://pypi.python.org/packages/source/n/netlib/netlib-$pkgver.tar.gz;)
-sha256sums=('5d752d93863cbccd8bb8d7990b62903e803490fa2de12c4fb79e028e20a7d309')
-
-build() {
-  cd $srcdir/netlib-$pkgver
-  python2 setup.py build
-}
-
-check() {
-  cd $srcdir/netlib-$pkgver
-  nosetests2 || warning Tests failed
-}
-
-package() {
-  cd $srcdir/netlib-$pkgver
-  python2 setup.py install -O1 --skip-build --root=$pkgdir
-
-  install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
-}

Copied: python2-netlib/repos/community-any/PKGBUILD (from rev 124378, 
python2-netlib/trunk/PKGBUILD)
===
--- PKGBUILD(rev 0)
+++ PKGBUILD2014-12-23 03:21:41 UTC (rev 124379)
@@ -0,0 +1,32 @@
+# $Id$
+# Maintainer: Felix Yan felixonm...@archlinux.org
+# Contributor: Nicolas Pouillard https://nicolaspouillard.fr
+
+pkgname=python2-netlib
+pkgver=0.11.1
+pkgrel=2
+pkgdesc=A collection of network utilities used by pathod and mitmproxy
+url=https://github.com/mitmproxy/netlib;
+license=('MIT')
+arch=('any')
+depends=(python2-passlib 'python2-pyasn1' 'python2-pyopenssl')
+checkdepends=('python2-nose' 'python2-mock' 'pathod')
+source=(http://pypi.python.org/packages/source/n/netlib/netlib-$pkgver.tar.gz;)
+sha256sums=('5d752d93863cbccd8bb8d7990b62903e803490fa2de12c4fb79e028e20a7d309')
+
+build() {
+  cd $srcdir/netlib-$pkgver
+  python2 setup.py build
+}
+
+check() {
+  cd $srcdir/netlib-$pkgver
+  nosetests2
+}
+
+package() {
+  cd $srcdir/netlib-$pkgver
+  python2 setup.py install -O1 --skip-build --root=$pkgdir
+
+  install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+}