mirror of
https://github.com/outbackdingo/ports.git
synced 2026-02-12 21:40:22 +00:00
15 lines
411 B
Plaintext
15 lines
411 B
Plaintext
# description : Python module for character encoding auto-detection (python2)
|
|
# depends : python2
|
|
|
|
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}
|
|
}
|