# Contributor: Carlo Landmeter # Maintainer: Francesco Colista setvar pkgname = 'py-idna' setvar _pkgname = 'idna' setvar pkgver = '2.6' setvar pkgrel = '0' setvar pkgdesc = ""IDNA 2008 and UTS #46 for Python"" setvar url = ""https://github.com/kjd/idna"" setvar arch = ""noarch"" setvar license = ""BSD"" setvar depends = """" setvar makedepends = ""python2-dev python3-dev py-setuptools"" setvar subpackages = ""py3-${pkgname#py-}:_py3 py2-${pkgname#py-}:_py2"" setvar source = ""idna-$pkgver.tar.gz::https://github.com/kjd/idna/archive/v$pkgver.tar.gz"" setvar builddir = ""$srcdir/$_pkgname-$pkgver"" proc build { cd $builddir python2 setup.py build || return 1 python3 setup.py build || return 1 } proc package { mkdir -p $pkgdir } proc _py { local python="$1" setvar pkgdesc = ""$pkgdesc (for $python)"" setvar depends = ""$depends $python"" setvar install_if = ""$pkgname=$pkgver-r$pkgrel $python"" cd $builddir $python setup.py install --prefix=/usr --root="$subpkgdir" } proc _py2 { setvar replaces = "$pkgname" _py python2 } proc _py3 { _py python3 } setvar sha512sums = ""a621ae106aef65b4ca2dff7939891c52c73a5ab7708fb087a5b0738649dab3548fc92453ecf8a40e3f7e11921a27bac130fb4594fc2c6a31f38446501805da9b idna-2.6.tar.gz""