desktop/python2-chardet/PKGBUILD
2014-04-12 18:26:29 +00:00

23 lines
706 B
Bash

# Maintainer: Adrian Chaves Fernandez (Gallaecio) <adriyetichaves@gmail.com>
# Contributor: Ionut Biru <ibiru@archlinux.org>
# Contributor: William Rea <sillywilly@gmail.com>
pkgname=python2-chardet
_pkgname=chardet
pkgver=2.2.1
pkgrel=1
pkgdesc="Python module for character encoding auto-detection"
arch=('any')
url="http://chardet.feedparser.org"
license=('LGPL')
depends=('python2' 'python-distribute')
provides=('python-chardet')
replaces=('python-chardet')
source=(http://pypi.python.org/packages/source/c/$_pkgname/$_pkgname-$pkgver.tar.gz)
md5sums=('4a758402eaefd0331bdedc7ecb6f452c')
package() {
cd "${srcdir}/${_pkgname}-${pkgver}"
python2 setup.py install --root="${pkgdir}" --optimize=1
}