archrelease: copy trunk to extra-x86_64
[arch-packages.git] / python2-idna / trunk / PKGBUILD
blob36224d3350fbb51e8f675fc9056d41a505d318bd
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python2-idna
4 pkgver=2.10
5 pkgrel=4
6 pkgdesc="Internationalized Domain Names in Applications (IDNA)"
7 arch=('any')
8 license=('BSD')
9 url="https://github.com/kjd/idna"
10 depends=('python2')
11 makedepends=('python2-setuptools')
12 source=("https://pypi.io/packages/source/i/idna/idna-$pkgver.tar.gz")
13 sha512sums=('83b412de2f79a4bc86fb4bdac7252521b9d84f0be54f4fb1bde1ee13a210bbfa4b1a98247affbc7921046fb117a591316c12694c1be72865767646554c5207ac')
15 prepare() {
16    rm -r idna-$pkgver/*.egg-info
19 build() {
20    cd idna-$pkgver
21    python2 setup.py build
24 check() {
25    cd idna-$pkgver
26    python2 setup.py test
29 package() {
30    cd idna-$pkgver
31    python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
32    install -Dm644 LICENSE.rst -t "$pkgdir"/usr/share/licenses/$pkgname/