[arch-commits] Commit in python-idna/repos (extra-any extra-any/PKGBUILD)

Felix Yan fyan at archlinux.org
Thu May 14 03:37:28 UTC 2015


    Date: Thursday, May 14, 2015 @ 05:37:27
  Author: fyan
Revision: 239318

archrelease: copy trunk to extra-any

Added:
  python-idna/repos/extra-any/
  python-idna/repos/extra-any/PKGBUILD
    (from rev 239317, python-idna/trunk/PKGBUILD)

----------+
 PKGBUILD |   54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 54 insertions(+)

Copied: python-idna/repos/extra-any/PKGBUILD (from rev 239317, python-idna/trunk/PKGBUILD)
===================================================================
--- extra-any/PKGBUILD	                        (rev 0)
+++ extra-any/PKGBUILD	2015-05-14 03:37:27 UTC (rev 239318)
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-idna
+pkgname=('python-idna' 'python2-idna')
+pkgver=1.1
+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=('9f5bfff6b317763c5a6f674707744dbe')
+
+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