34 lines
962 B
Bash
34 lines
962 B
Bash
# Template file for 'python-Unidecode'
|
|
pkgname=python-Unidecode
|
|
version=1.0.23
|
|
revision=1
|
|
archs=noarch
|
|
wrksrc="Unidecode-${version}"
|
|
build_style=python-module
|
|
pycompile_module="unidecode"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-setuptools"
|
|
short_desc="Python2 ASCII transliterations of Unicode text"
|
|
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://pypi.org/project/Unidecode/"
|
|
distfiles="${PYPI_SITE}/U/Unidecode/Unidecode-${version}.tar.gz"
|
|
checksum=8b85354be8fd0c0e10adbf0675f6dc2310e56fda43fa8fe049123b6c475e52fb
|
|
alternatives="unidecode:unidecode:/usr/bin/unidecode2"
|
|
|
|
do_check() {
|
|
python3 setup.py test
|
|
}
|
|
|
|
python3-Unidecode_package() {
|
|
archs=noarch
|
|
depends="python3-setuptools"
|
|
pycompile_module="unidecode"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
alternatives="unidecode:unidecode:/usr/bin/unidecode3"
|
|
pkg_install() {
|
|
vmove usr/bin/unidecode3
|
|
vmove usr/lib/python3*
|
|
}
|
|
}
|