blob: 3a9b1fb81c57bd22fb7b4c21efaebec3901a8d06 (
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
|
# Maintainer: Pellegrino Prevete <pellegrinoprevete@gmail.com>
_pkgname=python-nltk
pkgname=$_pkgname-git
pkgver=3.5+137+gd0f54c29b
pkgrel=1
pkgdesc='Natural language processing in Python'
arch=('any')
url='https://www.nltk.org/'
license=('APACHE')
depends=('python-regex' 'python-yaml')
makedepends=('python-setuptools')
checkdepends=('python-nose' 'nltk-data' 'python-requests' 'python-regex')
optdepends=('nltk-data: test data'
'python-numpy: used for calculations'
'python-matplotlib: used for plotting')
source=($_pkgname::"git+https://github.com/nltk/nltk")
conflicts=(_pkgname)
provides=(_pkgname)
sha256sums=('SKIP')
pkgver() {
cd $_pkgname
git describe --tags | sed 's/-/+/g'
}
build() {
cd $_pkgname
export PYTHONHASHSEED=0
python setup.py build
}
# Need to fix the nltk-data split
#check(){
# cd $_pkgname
# python ./nltk/test/runtests.py
#}
package() {
cd $_pkgname
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}
|