void-packages/srcpkgs/python-Unidecode/template

30 lines
907 B
Bash

# Template file for 'python-Unidecode'
pkgname=python-Unidecode
version=1.0.22
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.org/project/Unidecode/"
license="GPL-2"
distfiles="${PYPI_SITE}/U/Unidecode/Unidecode-${version}.tar.gz"
checksum=8c33dd588e0c9bc22a76eaa0c715a5434851f726131bd44a6c26471746efabf5
alternatives="unidecode:unidecode:/usr/bin/unidecode2"
python3-Unidecode_package() {
noarch=yes
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*
}
}