summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3f9287896fe33dd4f74a970a4947fe828b906527 (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
_pkgname=python2-ucto
pkgname=${_pkgname}-git
pkgver=10
pkgrel=1
pkgdesc='Python binding for Ucto, an advanced tokenizer (for NLP)'
arch=('i686' 'x86_64')
url="https://github.com/proycon/python-ucto"
license=('GPL')
depends=('python2' 'ucto>=0.8.0')
makedepends=('git' 'cython2')
provides=("${_pkgname}")
source=("git://github.com/proycon/python-ucto.git")
_gitname=("python-ucto")
md5sums=('SKIP')

pkgver() {
    cd "$srcdir/$_gitname"
    git rev-list --count HEAD
}

build() {
    cd "$srcdir/$_gitname"
    python2 setup.py build_ext build 
}

package() {
    cd "$srcdir/$_gitname"
    python2 setup.py install --root="${pkgdir}"
}