summaryrefslogtreecommitdiff
path: root/pcr/python-gensim/PKGBUILD
blob: f0ab07dc0bd64a001b787350af6407037f6db565 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Contributor (Arch)    : Maarten van Gompel <proycon at anaproy dot nl>
# Contributor (Arch)    : Lex Black <autumn-wind at web dot de>
# Contributor (Arch)    : Dieter_be
# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp>

_pkgbase=gensim
pkgbase=python-gensim
pkgname=('python-gensim' 'python2-gensim')
pkgver=0.10.3
pkgrel=1
pkgdesc="Python framework for fast Vector Space Modelling"
arch=('i686' 'x86_64')
url="http://nlp.fi.muni.cz/projekty/gensim/"
license=('LGPL')
makedepends=('python-setuptools' 'python2-setuptools' 'python-scipy' 'python2-scipy' 'cython' 'cython2')
source=("http://pypi.python.org/packages/source/g/$_pkgbase/$_pkgbase-${pkgver}.tar.gz")
md5sums=('0a9c0986d9b6c1d3f88135afa3da2230')


prepare() {
    cp -r $_pkgbase-$pkgver $_pkgbase-$pkgver-py2
}

build() {
    unset LDFLAGS
    unset FFLAGS

    cd ${srcdir}/$_pkgbase-${pkgver}
    python setup.py build

    cd ${srcdir}/$_pkgbase-${pkgver}-py2
    python2 setup.py build
}

#test() {
#    python2 setup.py test
#}

package_python-gensim() {
    pkgdesc+=" (Python3.x)"
    depends=(python-scipy)

    cd ${srcdir}/$_pkgbase-${pkgver}
    python setup.py install --prefix=/usr --root=${pkgdir}
}

package_python2-gensim() {
    pkgdesc+=" (Python2.x)"
    depends=(python2-scipy)

    cd ${srcdir}/$_pkgbase-${pkgver}-py2
    python2 setup.py install --prefix=/usr --root=${pkgdir}
}