Files
ports/main/python3-chardet/spkgbuild
2021-05-12 08:11:10 +08: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=4.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
}