blob: 4b598f6eb395d1aab10c3d5587d2f5af7a33d75b (
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
|
# Maintainer: Adrien Wu <adrien.sf.wu@gmail.com>
pkgname=python-pystatparser-git
pkgver=r24.0e4990d
pkgrel=5
pkgdesc="Simple Python statistical (CKY) parser"
url="https://github.com/emilmont/pyStatParser"
arch=('any')
provides=('python-pystatparser')
depends=('python' 'python-nltk')
makedepends=('git' 'python-setuptools')
_name='pyStatParser'
source=("git+https://github.com/emilmont/$_name.git")
sha256sums=('SKIP')
pkgver() {
cd "$_name"
_gitversion=$(printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" )
printf "%s" $_gitversion
}
build() {
cd "$_name"
python setup.py build
}
package() {
cd "$_name"
python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
cd "$pkgdir/usr/lib/python"*"/site-packages/"
PYTHONPATH=$PYTHONPATH:$(pwd) python -c 'import stat_parser; stat_parser.Parser()'
}
|