[arch-commits] Commit in python-idna/repos (staging-any staging-any/PKGBUILD)
Felix Yan
fyan at archlinux.org
Sat Sep 19 12:49:02 UTC 2015
Date: Saturday, September 19, 2015 @ 14:49:01
Author: fyan
Revision: 246614
archrelease: copy trunk to staging-any
Added:
python-idna/repos/staging-any/
python-idna/repos/staging-any/PKGBUILD
(from rev 246613, python-idna/trunk/PKGBUILD)
----------+
PKGBUILD | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 54 insertions(+)
Copied: python-idna/repos/staging-any/PKGBUILD (from rev 246613, python-idna/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD (rev 0)
+++ staging-any/PKGBUILD 2015-09-19 12:49:01 UTC (rev 246614)
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-idna
+pkgname=('python-idna' 'python2-idna')
+pkgver=2.0
+pkgrel=2
+pkgdesc="Internationalized Domain Names in Applications (IDNA)"
+arch=('any')
+license=('BSD')
+url="https://github.com/kjd/idna"
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("https://pypi.python.org/packages/source/i/idna/idna-${pkgver}.tar.gz")
+md5sums=('bd17a9d15e755375f48a62c13b25b801')
+
+prepare() {
+ cp -a idna-${pkgver}{,-python2}
+}
+
+build() {
+ # Build python 3 module
+ cd idna-${pkgver}
+ python setup.py build
+
+ # Build python 2 module
+ cd ../idna-${pkgver}-python2
+ python2 setup.py build
+}
+
+check() {
+ # Check python3 module
+ cd "${srcdir}"/idna-${pkgver}
+ python setup.py test
+
+ # Check python2 module
+ cd "${srcdir}"/idna-${pkgver}-python2
+ 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}-python2
+ python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+ install -Dm644 LICENSE.rst "$pkgdir/usr/share/licenses/$pkgname/LICENSE.rst"
+}
More information about the arch-commits
mailing list