summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2017-07-16 02:13:45 (GMT)
committerBritney Fransen <brfransen@gmail.com>2017-07-16 02:13:45 (GMT)
commit52d090c3f7ef15b0f52e0bd380243d91582bd38e (patch)
treef3a6a38677436d824683dbb0b592afac71f5906f
parent599b8835d6583229f4344d459e74cdc27b47f81c (diff)
downloadlinhes_pkgbuild-52d090c3f7ef15b0f52e0bd380243d91582bd38e.zip
linhes_pkgbuild-52d090c3f7ef15b0f52e0bd380243d91582bd38e.tar.gz
linhes_pkgbuild-52d090c3f7ef15b0f52e0bd380243d91582bd38e.tar.bz2
python-webencodings: initial inclusion. dep of flexget
-rw-r--r--abs/core/python_modules/python-webencodings/PKGBUILD40
-rw-r--r--abs/core/python_modules/python-webencodings/__changelog2
2 files changed, 42 insertions, 0 deletions
diff --git a/abs/core/python_modules/python-webencodings/PKGBUILD b/abs/core/python_modules/python-webencodings/PKGBUILD
new file mode 100644
index 0000000..95f05b0
--- /dev/null
+++ b/abs/core/python_modules/python-webencodings/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: Jelle van der Waa <jelle@vdwaa.nl>
+# Contributor: Jelle van der Waa <jelle@vdwaa.nl>
+
+pkgbase=python-webencodings
+pkgname=('python2-webencodings')
+pkgver=0.5.1
+pkgrel=1
+arch=('any')
+url="https://github.com/gsnedders/python-webencodings"
+license=('BSD')
+makedepends=('python2' 'python2-setuptools')
+checkdepends=('python2-nose')
+source=(https://github.com/gsnedders/python-webencodings/archive/v$pkgver.tar.gz)
+md5sums=('7eb67377743cd55eaa356496c439471e')
+
+package_python-webencodings() {
+pkgdesc="This is a Python implementation of the WHATWG Encoding standard."
+depends=('python')
+ cd ${srcdir}/${pkgbase}-${pkgver}
+
+ python3 setup.py install --root=${pkgdir}
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-webencodings() {
+pkgdesc="This is a Python implementation of the WHATWG Encoding standard."
+depends=('python2')
+ cd ${srcdir}/${pkgbase}-${pkgver}
+
+ python2 setup.py install --root=${pkgdir}
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+check() {
+ cd ${srcdir}/${pkgbase}-${pkgver}/webencodings
+
+ nosetests tests.py
+
+ nosetests2 tests.py
+}
diff --git a/abs/core/python_modules/python-webencodings/__changelog b/abs/core/python_modules/python-webencodings/__changelog
new file mode 100644
index 0000000..4f818ef
--- /dev/null
+++ b/abs/core/python_modules/python-webencodings/__changelog
@@ -0,0 +1,2 @@
+PKGBUILD: don't build py 3 stuff
+