blob: 1d18ce59607686a4bbeae7fb0921688982b0edf5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# $Id$
# Maintainer: Felix Yan <felixonmars@archlinux.org>
pkgbase=python-idna
pkgname=('python2-idna')
pkgver=2.1
pkgrel=1
pkgdesc="Internationalized Domain Names in Applications (IDNA)"
arch=('any')
license=('BSD')
url="https://github.com/kjd/idna"
makedepends=('python2-setuptools')
source=("https://pypi.python.org/packages/source/i/idna/idna-$pkgver.tar.gz")
md5sums=('f6473caa9c5e0cc1ad3fd5d04c3c114b')
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
}
|