summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorDarcy Hu2018-10-05 11:02:24 +0800
committerDarcy Hu2018-10-05 11:02:24 +0800
commitffa264f0e93493776faec1734a86e2756e3d0ff1 (patch)
tree7dd528fdbc0b5cd6899ad17c5d7de15dcbdcfe32 /PKGBUILD
parent8f4379531c80c7aa45aac0d897dcb99e5556a60b (diff)
downloadaur-ffa264f0e93493776faec1734a86e2756e3d0ff1.tar.gz
add python interface
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD9
1 files changed, 8 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 47ed00da1eb..787d99dcb8d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,7 +5,7 @@
pkgname=thundersvm-git
pkgver=r779.5f66a3e
-pkgrel=1
+pkgrel=2
pkgdesc="A fast SVM library on GPUs and CPUs"
arch=('x86_64')
url="https://github.com/Xtra-Computing/thundersvm"
@@ -39,6 +39,9 @@ build() {
-DUSE_EIGEN=ON \
-DBUILD_TESTS=ON ..
make
+ # build python interface
+ cd "$srcdir/thundersvm/python"
+ python setup.py build
}
check_thundersvm-git() {
@@ -51,7 +54,11 @@ package() {
cd "$srcdir/thundersvm/build/bin"
install -Dm755 thundersvm-predict "$pkgdir/usr/bin/thundersvm-predict"
install -Dm755 thundersvm-train "$pkgdir/usr/bin/thundersvm-train"
+ cd "$srcdir/thundersvm/build/lib"
+ install -Dm755 libthundersvm.so "$pkgdir/usr/lib/libthundersvm.so"
cd "$srcdir/thundersvm"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ cd "$srcdir/thundersvm/python"
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}