[arch-commits] Commit in python-idna/repos (community-any community-any/PKGBUILD)
Felix Yan
fyan at archlinux.org
Fri Aug 22 14:42:02 UTC 2014
Date: Friday, August 22, 2014 @ 16:42:02
Author: fyan
Revision: 117767
archrelease: copy trunk to community-any
Added:
python-idna/repos/community-any/
python-idna/repos/community-any/PKGBUILD
(from rev 117766, python-idna/trunk/PKGBUILD)
----------+
PKGBUILD | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 54 insertions(+)
Copied: python-idna/repos/community-any/PKGBUILD (from rev 117766, python-idna/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2014-08-22 14:42:02 UTC (rev 117767)
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at gmail.com>
+
+pkgbase=python-idna
+pkgname=('python-idna' 'python2-idna')
+pkgver=0.9
+pkgrel=1
+pkgdesc="Internationalized Domain Names in Applications (IDNA)"
+arch=('any')
+license=('BSD')
+url="https://github.com/kjd/idna"
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("http://pypi.python.org/packages/source/i/idna/idna-${pkgver}.tar.gz")
+md5sums=('adeaa25679040dc6f8098a2e2ab6c42d')
+
+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