diff options
author | Maarten van Gompel | 2015-06-21 12:51:13 +0200 |
---|---|---|
committer | Maarten van Gompel | 2015-06-21 12:51:13 +0200 |
commit | 1ddcc5a4f571ffab690ec1379590fa6297a9ec83 (patch) | |
tree | 7757c88915584988bd3d922cdb70ead6bc97fca1 /PKGBUILD | |
download | aur-python2-timbl-git.tar.gz |
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0161e41027e3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +_pkgname=python2-timbl +pkgname=${_pkgname}-git +pkgver=41 +pkgrel=3 +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=('python2' 'libxml2' 'boost' 'timbl') +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" + python2 setup2.py build_ext --timbl-library-dir=/usr/lib --timbl-include-dir=/usr/include/ build +} + +package() { + cd "$srcdir/$_gitname" + python2 setup2.py build_ext --timbl-library-dir=/usr/lib --timbl-include-dir=/usr/include/ install --prefix=/usr --root="${pkgdir}" +} + |