contrib/python3-chardet/Pkgfile

18 lines
559 B
Plaintext

# Description: Python module for character encoding auto-detection.
# URL: https://github.com/erikrose/chardet
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: python3-build python3-installer
name=python3-chardet
_name=${name#*-}
version=5.2.0
release=1
source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$version.tar.gz)
build() {
cd chardet-$version
/usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
/usr/bin/python3 -m installer --compile-bytecode 2 --destdir=$PKG dist/*.whl
}