[arch-commits] Commit in python-idna/trunk (PKGBUILD)
Felix Yan
fyan at archlinux.org
Mon Mar 21 01:19:42 UTC 2016
Date: Monday, March 21, 2016 @ 02:19:41
Author: fyan
Revision: 262142
upgpkg: python-idna 2.1-1
Modified:
python-idna/trunk/PKGBUILD
----------+
PKGBUILD | 34 +++++++++++++++-------------------
1 file changed, 15 insertions(+), 19 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-03-21 00:03:39 UTC (rev 262141)
+++ PKGBUILD 2016-03-21 01:19:41 UTC (rev 262142)
@@ -3,37 +3,33 @@
pkgbase=python-idna
pkgname=('python-idna' 'python2-idna')
-pkgver=2.0
-pkgrel=2
+pkgver=2.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=("https://pypi.python.org/packages/source/i/idna/idna-${pkgver}.tar.gz")
-md5sums=('bd17a9d15e755375f48a62c13b25b801')
+source=("https://pypi.python.org/packages/source/i/idna/idna-$pkgver.tar.gz")
+md5sums=('f6473caa9c5e0cc1ad3fd5d04c3c114b')
prepare() {
- cp -a idna-${pkgver}{,-python2}
+ cp -a idna-$pkgver{,-py2}
}
build() {
- # Build python 3 module
- cd idna-${pkgver}
+ cd "$srcdir"/idna-$pkgver
python setup.py build
- # Build python 2 module
- cd ../idna-${pkgver}-python2
+ cd "$srcdir"/idna-$pkgver-py2
python2 setup.py build
}
check() {
- # Check python3 module
- cd "${srcdir}"/idna-${pkgver}
+ cd "$srcdir"/idna-$pkgver
python setup.py test
- # Check python2 module
- cd "${srcdir}"/idna-${pkgver}-python2
+ cd "$srcdir"/idna-$pkgver-py2
python2 setup.py test
}
@@ -40,15 +36,15 @@
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"
+ 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"
+ 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