updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / python2-mmseg / PKGBUILD
blobe43460771f581b451a9d19c81f22095748285624
1 # Contributor: Philanecros Heliostein <philanecros@gmail.com>
3 pkgname="python2-mmseg"
4 pkgver="1.2.4"
5 pkgrel=1
6 pkgdesc="Chinese Segment On MMSeg Algorithm"
8 arch=('i686' 'x86_64')
10 url="http://pypi.python.org/pypi/mmseg/"
11 license=('MIT')
13 #groups=()
15 depends=('python2>=2.6')
16 #makedepends=()
17 #optdepends=()
19 #provides=()
20 #conflicts=()
21 #replaces=()
23 #backup=()
24 #options=()
26 #install=
27 #changelog=
29 source=('http://pypi.python.org/packages/source/m/mmseg/mmseg-1.2.4.tar.gz')
30 #noextract=()
31 md5sums=('a0531287013bb08f258f9e2023c212b1')
33 build() {
34   cd "${srcdir}/mmseg-${pkgver}"
36   # replace /usr/bin/env python with python2
37   find . -name '*.py' -exec sed -i -e '1 s/python\s*$/python2/' {} \;
39   python2 ./setup.py build || return 1
42 package() {
43   cd "${srcdir}/mmseg-${pkgver}"
45   python2 ./setup.py install --root=${pkgdir} --prefix=/usr || return 1