2018-03-15 13:13:29 +01:00
|
|
|
# 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-setuptools
|
|
|
|
|
|
|
|
name=python3-chardet
|
|
|
|
version=3.0.4
|
2018-04-14 14:29:48 +02:00
|
|
|
release=2
|
2018-03-15 13:13:29 +01:00
|
|
|
source=(https://files.pythonhosted.org/packages/source/${name:8:1}/${name#*-}/${name#*-}-$version.tar.gz)
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd ${name#*-}-$version
|
|
|
|
/usr/bin/python3 setup.py build
|
|
|
|
/usr/bin/python3 setup.py install --prefix=/usr --root=$PKG --optimize=1
|
2018-04-14 14:29:48 +02:00
|
|
|
mv $PKG/usr/bin/chardetect{,-py3}
|
2018-03-15 13:13:29 +01:00
|
|
|
}
|