36 lines
1.1 KiB
Bash
36 lines
1.1 KiB
Bash
# Template file for 'python-Unidecode'
|
|
pkgname=python-Unidecode
|
|
version=0.04.20
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="Unidecode-${version}"
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-setuptools"
|
|
pycompile_module="unidecode"
|
|
short_desc="Python2 ASCII transliterations of Unicode text"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
homepage="https://pypi.python.org/pypi/Unidecode/"
|
|
license="GPL-2"
|
|
distfiles="${PYPI_SITE}/U/Unidecode/Unidecode-${version}.tar.gz"
|
|
checksum=ed4418b4b1b190487753f1cca6299e8076079258647284414e6d607d1f8a00e0
|
|
alternatives="unidecode:unidecode:/usr/bin/unidecode2"
|
|
|
|
python3-Unidecode_package() {
|
|
noarch=yes
|
|
depends="python3-setuptools"
|
|
pycompile_module="unidecode"
|
|
replaces="python3.4-Unicode>=0"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
alternatives="unidecode:unidecode:/usr/bin/unidecode3"
|
|
pkg_install() {
|
|
vmove usr/bin/unidecode3
|
|
vmove usr/lib/python3*
|
|
}
|
|
}
|
|
python3.4-Unidecode_package() {
|
|
noarch=yes
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-Unidecode>=${version}_${revision}"
|
|
}
|