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

Felix Yan felixonmars at archlinux.org
Wed Mar 1 14:01:07 UTC 2017


    Date: Wednesday, March 1, 2017 @ 14:01:06
  Author: felixonmars
Revision: 289756

archrelease: copy trunk to testing-any

Added:
  python-idna/repos/testing-any/
  python-idna/repos/testing-any/PKGBUILD
    (from rev 289755, python-idna/trunk/PKGBUILD)

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

Copied: python-idna/repos/testing-any/PKGBUILD (from rev 289755, python-idna/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD	                        (rev 0)
+++ testing-any/PKGBUILD	2017-03-01 14:01:06 UTC (rev 289756)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-idna
+pkgname=('python-idna' 'python2-idna')
+pkgver=2.4
+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=("https://pypi.io/packages/source/i/idna/idna-$pkgver.tar.gz")
+md5sums=('b27328914784bf3e4f6fae16f4b75ba9')
+
+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
+}


More information about the arch-commits mailing list