contrib/python3-chardet/Pkgfile

17 lines
548 B
Plaintext

# Description: Python module for character encoding auto-detection.
# URL: https://github.com/erikrose/chardet
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: python3-build python3-installer
name=python3-chardet
version=5.1.0
release=1
source=(https://files.pythonhosted.org/packages/source/${name:8: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
}