diff options
author | root <root@rshg054.dnsready.net> | 2012-11-22 02:31:09 -0800 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-11-22 02:31:09 -0800 |
commit | 38ea2e71952c00f18230ed0e691532aadff4e2c1 (patch) | |
tree | bc1c7cfd697773062d53a0a23b35afdb0fc775c2 /community/python2-cchardet/PKGBUILD | |
parent | f48f6c82e23a3bacb8a0952c2d2cf9af1e6bf42d (diff) |
Thu Nov 22 02:27:52 PST 2012
Diffstat (limited to 'community/python2-cchardet/PKGBUILD')
-rw-r--r-- | community/python2-cchardet/PKGBUILD | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/community/python2-cchardet/PKGBUILD b/community/python2-cchardet/PKGBUILD new file mode 100644 index 000000000..c9c108873 --- /dev/null +++ b/community/python2-cchardet/PKGBUILD @@ -0,0 +1,28 @@ +# $Id: PKGBUILD 80426 2012-11-21 14:15:53Z mtorromeo $ +# Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com> + +pkgname=python2-cchardet +pkgver=0.3.2 +pkgrel=1 +_libname=${pkgname/python2-/} +pkgdesc="Universal encoding detector faster than chardet." +url="http://pypi.python.org/pypi/cchardet/" +depends=('python2') +makedepends=('cython2' 'python2-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" + find -type f -exec sed -i '1 s|python\s*$|python2|' {} + + python2 setup.py build +} + +package() { + cd "$srcdir/$_libname-$pkgver" + python2 setup.py install --root="$pkgdir" + install -m0644 -D "README.rst" "$pkgdir/usr/share/licenses/$pkgname/README.rst" +} + +sha256sums=('a3e92811d5a8aacd9ecfdb4ea9637ba801b9b18b7c779dbdf41d07bb48235a23') |