36 lines
858 B
Bash
36 lines
858 B
Bash
# Template file for 'python-idna'
|
|
pkgname=python-idna
|
|
version=2.7
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="idna-${version}"
|
|
build_style=python-module
|
|
pycompile_module="idna"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python"
|
|
short_desc="Internationalized Domain Names in Applications (IDNA) for Python2"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
homepage="https://github.com/kjd/idna"
|
|
license="BSD-3-Clause"
|
|
distfiles="${PYPI_SITE}/i/idna/idna-${version}.tar.gz"
|
|
checksum=684a38a6f903c1d71d6d5fac066b58d7768af4de2b832e426ec79c30daa94a16
|
|
|
|
pre_build() {
|
|
# fix permissions
|
|
chmod -R go+rX .
|
|
}
|
|
post_install() {
|
|
vlicense LICENSE.rst LICENSE
|
|
}
|
|
|
|
python3-idna_package() {
|
|
noarch=yes
|
|
depends="python3"
|
|
pycompile_module="idna"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE.rst LICENSE
|
|
}
|
|
}
|