Files
ports/main/python3-chardet/spkgbuild
2023-08-02 12:10:25 +00:00

16 lines
542 B
Plaintext

# description : Python module for character encoding auto-detection
# depends : python3-setuptools python3-build python3-installer python3-wheel python3-packaging
name=python3-chardet
_name=${name#*-}
_n=${_name%${_name#?}}
version=5.2.0
release=1
source="$name-$version.tar.gz::https://files.pythonhosted.org/packages/source/$_n/${name#*-}/${name#*-}-$version.tar.gz"
build() {
cd ${name#*-}-$version
python3 -m build --wheel --skip-dependency-check --no-isolation
python3 -m installer --compile-bytecode 2 --destdir=$PKG dist/*.whl
}