summaryrefslogtreecommitdiff
path: root/community/python-cchardet/PKGBUILD
blob: ac36b156fa8e58b7d7b3a06a4b106b8d1772e982 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# $Id: PKGBUILD 80436 2012-11-21 15:45:04Z mtorromeo $
# Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>

pkgname=python-cchardet
pkgver=0.3.2
pkgrel=1
_libname=${pkgname/python-/}
pkgdesc="Universal encoding detector faster than chardet."
url="http://pypi.python.org/pypi/cchardet/"
depends=('python')
makedepends=('cython' 'python-distribute')
license=('MIT')
arch=('i686' 'x86_64')
source=(http://pypi.python.org/packages/source/${_libname:0:1}/$_libname/$_libname-$pkgver.tar.gz)

build() {
    cd "$srcdir/$_libname-$pkgver"
    python setup.py build
}

package() {
    cd "$srcdir/$_libname-$pkgver"
    python setup.py install --root="$pkgdir"
	install -m0644 -D "README.rst" "$pkgdir/usr/share/licenses/$pkgname/README.rst"
}

sha256sums=('a3e92811d5a8aacd9ecfdb4ea9637ba801b9b18b7c779dbdf41d07bb48235a23')