blob: 5e36fa24a002f2a7cb2167880543171f7c8ce6cf (
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=python-timbl
pkgname=${_pkgname}-git
pkgver=48
pkgrel=1
pkgdesc='Python binding for Timbl, a k-Nearest Neighbours machine learning suite'
arch=('i686' 'x86_64')
url="https://github.com/proycon/python-timbl"
license=('GPL')
depends=('python' 'libxml2' 'boost' 'timbl' 'python-setuptools')
makedepends=('git' 'libtool')
provides=("${_pkgname}")
source=("git://github.com/proycon/python-timbl.git")
_gitname=("python-timbl")
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$_gitname"
git rev-list --count HEAD
}
build() {
cd "$srcdir/$_gitname"
python setup3.py build_ext --timbl-library-dir=/usr/lib --timbl-include-dir=/usr/include/ build
}
package() {
cd "$srcdir/$_gitname"
python setup3.py build_ext --timbl-library-dir=/usr/lib --timbl-include-dir=/usr/include/ install --prefix=/usr --root="${pkgdir}"
}
|