void-packages/srcpkgs/python-Unidecode/template

34 lines
961 B
Bash

# Template file for 'python-Unidecode'
pkgname=python-Unidecode
version=1.1.1
revision=2
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="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://pypi.org/project/Unidecode/"
distfiles="${PYPI_SITE}/U/Unidecode/Unidecode-${version}.tar.gz"
checksum=2b6aab710c2a1647e928e36d69c21e76b453cd455f4e2621000e54b2a9b8cce8
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*
}
}