36 lines
1.1 KiB
Bash
36 lines
1.1 KiB
Bash
# Template file for 'python-chardet'
|
|
pkgname=python-chardet
|
|
version=3.0.2
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="chardet-${version}"
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-setuptools"
|
|
pycompile_module="chardet"
|
|
short_desc="Universal encoding detector for Python 2 and 3 (Python2)"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
homepage="https://github.com/chardet/chardet"
|
|
license="LGPL-2.1"
|
|
distfiles="${PYPI_SITE}/c/chardet/chardet-${version}.tar.gz"
|
|
checksum=4f7832e7c583348a9eddd927ee8514b3bf717c061f57b21dbe7697211454d9bb
|
|
alternatives="chardet:chardetect:/usr/bin/chardetect2"
|
|
|
|
python3-chardet_package() {
|
|
noarch=yes
|
|
depends="python3-setuptools"
|
|
pycompile_module="chardet"
|
|
replaces="python3.4-chardet>=0"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
alternatives="chardet:chardetect:/usr/bin/chardetect3"
|
|
pkg_install() {
|
|
vmove usr/bin/chardetect3
|
|
vmove usr/lib/python3*
|
|
}
|
|
}
|
|
python3.4-chardet_package() {
|
|
noarch=yes
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-chardet>=${version}_${revision}"
|
|
}
|