1 pkgname=python-gensim-git
4 pkgdesc="Python framework for fast Vector Space Modelling"
6 url="http://nlp.fi.muni.cz/projekty/gensim/"
8 depends=('python-scipy')
9 makedepends=('gcc' 'setuptools')
10 provides=('python-gensim')
11 conflicts=('python-gensim')
15 _gitroot="git://github.com/piskvorky/gensim.git"
21 msg "Connecting to GIT server...."
23 if [ -d $_gitname ] ; then
24 cd $_gitname && git pull origin
25 msg "The local files are updated."
27 git clone $_gitroot $_gitname
28 cd $_gitname && git checkout $_gitname && cd -
31 msg "GIT checkout done or server timeout"
32 msg "Starting make..."
34 rm -rf "$srcdir/$_gitname-build"
35 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36 cd "$srcdir/$_gitname-build"
37 git checkout $_gitname
43 for file in $(find . -name '*.py' -print); do
44 sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file
45 sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
49 python2 setup.py build
50 python2 setup.py install --prefix=/usr --root=${pkgdir}
51 #install -D -m644 LICENSE.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt TODO: where to get license?