blob: 84226ff0f53c65ef9d4fab31fbac3ec9e7a1e020 (
plain)
1 # Description: Python module for character encoding auto-detection.
2 # URL: https://github.com/erikrose/chardet
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: python3-setuptools
5
6 name=python3-chardet
7 version=4.0.0
8 release=1
9 source=(https://files.pythonhosted.org/packages/source/${name:8:1}/${name#*-}/${name#*-}-$version.tar.gz)
10
11 build() {
12 cd ${name#*-}-$version
13 /usr/bin/python3 setup.py build
14 /usr/bin/python3 setup.py install --prefix=/usr --root=$PKG --optimize=1
15 mv $PKG/usr/bin/chardetect{,-py3}
16 }
|