mirror of
https://github.com/outbackdingo/ports.git
synced 2026-02-08 10:20:32 +00:00
15 lines
422 B
Plaintext
15 lines
422 B
Plaintext
# description : Python module for character encoding auto-detection (python2)
|
|
# depends : python2-setuptools
|
|
|
|
name=python2-chardet
|
|
version=3.0.4
|
|
release=1
|
|
source="https://files.pythonhosted.org/packages/source/${name:8:1}/${name#*-}/${name#*-}-$version.tar.gz"
|
|
|
|
build() {
|
|
cd ${name#*-}-$version
|
|
python2 setup.py build
|
|
python2 setup.py install --prefix=/usr --root=$PKG --optimize=1
|
|
mv $PKG/usr/bin/chardetect{,-py2}
|
|
}
|