Files
ports/main/python3-chardet/spkgbuild
2022-07-14 23:49:34 +02:00

16 lines
409 B
Plaintext

# description : Python module for character encoding auto-detection
# depends : python3-setuptools
name=python3-chardet
_name=${name#*-}
_n=${_name%${_name#?}}
version=5.0.0
release=1
source="https://files.pythonhosted.org/packages/source/$_n/${name#*-}/${name#*-}-$version.tar.gz"
build() {
cd ${name#*-}-$version
python3 setup.py build
python3 setup.py install --prefix=/usr --root=$PKG --optimize=1
}