1 # Maintainer: Alexey Zinovyev <root@x3al.pp.ru>
6 pkgdesc="Han character library for CJKV languages"
8 url="http://code.google.com/p/cjklib/"
10 replaces=('python-cjklib')
11 provides=('python-cjklib')
12 conflicts=('python-cjklib')
13 depends=('python2-sqlalchemy' 'python2-distribute' 'sqlite3' 'python2')
15 source=("http://cjklib.googlecode.com/files/cjklib-$pkgver.tar.gz")
16 md5sums=('e5ea0997fbe0a4398f3693ba3252ebfd')
20 cd "$srcdir/cjklib-$pkgver"
21 python2 setup.py install --root="$pkgdir" --optimize=1
22 find "$pkgdir" -name '*.py' -print0|xargs -0 \
23 sed -i -e 's,^#!/usr/bin/env python$,#!/usr/bin/env python2,' \
24 -e 's,^#!/usr/bin/python$,#!/usr/bin/python2,'