python-Unidecode: use alternatives

This commit is contained in:
Alessio Sergi 2016-05-01 01:26:26 +02:00
parent e4ff16a4bd
commit a03e7c267f
1 changed files with 3 additions and 6 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'python-Unidecode'
pkgname=python-Unidecode
version=0.04.19
revision=1
revision=2
noarch=yes
wrksrc="Unidecode-${version}"
build_style=python-module
@ -15,11 +15,7 @@ homepage="https://pypi.python.org/pypi/Unidecode/"
license="GPL-2"
distfiles="${PYPI_SITE}/U/Unidecode/Unidecode-${version}.tar.gz"
checksum=51477646a9169469e37e791b13ae65fcc75b7f7f570d0d3e514d077805c02e1e
post_install() {
cp -f ${DESTDIR}/usr/bin/unidecode{,3.4}
replace_interpreter python ${DESTDIR}/usr/bin/unidecode
}
alternatives="unidecode:unidecode:/usr/bin/unidecode2.7"
python3.4-Unidecode_package() {
noarch=yes
@ -27,6 +23,7 @@ python3.4-Unidecode_package() {
pycompile_version="3.4"
pycompile_module="unidecode"
short_desc="${short_desc/Python2/Python3.4}"
alternatives="unidecode:unidecode:/usr/bin/unidecode3.4"
pkg_install() {
vmove usr/bin/unidecode3.4
vmove usr/lib/python3.4