archrelease: copy trunk to extra-x86_64
[arch-packages.git] / python-idna / trunk / PKGBUILD
blob5f6435ecc6bf421f014c08ebb560669416579f90
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-idna
4 pkgver=3.3
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=('python')
11 makedepends=('python-setuptools')
12 source=("https://pypi.io/packages/source/i/idna/idna-$pkgver.tar.gz")
13 sha512sums=('70b7cc8718e7d7899c75cfe476f044eae5a2fa03801fc9c12e3a092627ca943ffc4a578f9b8a55e181a11564835e125cfaaa577c02a6461dbb97366e620e53ad')
15 prepare() {
16    rm -r idna-$pkgver/*.egg-info
19 build() {
20    cd idna-$pkgver
21    python setup.py build
24 check() {
25    cd idna-$pkgver
26    python setup.py test
29 package() {
30    cd idna-$pkgver
31    python setup.py install --root="$pkgdir" --optimize=1 --skip-build
32    install -Dm644 LICENSE.md -t "$pkgdir"/usr/share/licenses/$pkgname/