summaryrefslogtreecommitdiffstats
path: root/abs/core
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2016-04-15 17:56:44 (GMT)
committerBritney Fransen <brfransen@gmail.com>2016-04-15 17:56:44 (GMT)
commitbc7cebddcaa8d2dd9c598302947d08a3b1a1f317 (patch)
tree9414bf46aa7497f9ef436e5ecfe9d323725f0a57 /abs/core
parent165ed5455a3dcdabce529cd4bf33fcaff159cecc (diff)
downloadlinhes_pkgbuild-bc7cebddcaa8d2dd9c598302947d08a3b1a1f317.zip
linhes_pkgbuild-bc7cebddcaa8d2dd9c598302947d08a3b1a1f317.tar.gz
linhes_pkgbuild-bc7cebddcaa8d2dd9c598302947d08a3b1a1f317.tar.bz2
python-idna: initial inclusion dep of python-cryptography
Diffstat (limited to 'abs/core')
-rw-r--r--abs/core/python_modules/python-idna/PKGBUILD50
-rw-r--r--abs/core/python_modules/python-idna/__changelog1
2 files changed, 51 insertions, 0 deletions
diff --git a/abs/core/python_modules/python-idna/PKGBUILD b/abs/core/python_modules/python-idna/PKGBUILD
new file mode 100644
index 0000000..1d18ce5
--- /dev/null
+++ b/abs/core/python_modules/python-idna/PKGBUILD
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars@archlinux.org>
+
+pkgbase=python-idna
+pkgname=('python2-idna')
+pkgver=2.1
+pkgrel=1
+pkgdesc="Internationalized Domain Names in Applications (IDNA)"
+arch=('any')
+license=('BSD')
+url="https://github.com/kjd/idna"
+makedepends=('python2-setuptools')
+source=("https://pypi.python.org/packages/source/i/idna/idna-$pkgver.tar.gz")
+md5sums=('f6473caa9c5e0cc1ad3fd5d04c3c114b')
+
+prepare() {
+ cp -a idna-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/idna-$pkgver
+# python setup.py build
+
+ cd "$srcdir"/idna-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/idna-$pkgver
+ python setup.py test
+
+ cd "$srcdir"/idna-$pkgver-py2
+ python2 setup.py test
+}
+
+package_python-idna() {
+ depends=('python')
+
+ cd idna-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -Dm644 LICENSE.rst "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.rst
+}
+
+package_python2-idna() {
+ depends=('python2')
+
+ cd idna-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -Dm644 LICENSE.rst "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.rst
+}
diff --git a/abs/core/python_modules/python-idna/__changelog b/abs/core/python_modules/python-idna/__changelog
new file mode 100644
index 0000000..60db758
--- /dev/null
+++ b/abs/core/python_modules/python-idna/__changelog
@@ -0,0 +1 @@
+PKGBUILD: remove py3 stuff