Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Nov 22nd, 2012  |  syntax: Bash  |  size: 1.65 KB  |  views: 56  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributor: Pierre Gueth <pierre.gueth@gmail.com>
  2. # Maintainer: Daniel YC Lin <dlin.tw at gmail.com>
  3. pkgname=libsvm
  4. pkgver=3.14
  5. pkgrel=1
  6. pkgdesc="A library for Support Vector Machines classification, include binaries and python bindings."
  7. arch=(x86_64 i686)
  8. url="http://www.csie.ntu.edu.tw/~cjlin/libsvm/"
  9. license=('GPL')
  10. groups=()
  11. depends=(coreutils)
  12. makedepends=(python python2)
  13. optdepends=('python: bindings for latest python version' 'python2: bindings for python 2'
  14. 'java-runtime: bindings for java' 'gcc-libs-multilib')
  15. provides=()
  16. conflicts=()
  17. replaces=()
  18. backup=()
  19. options=()
  20. install=
  21. source=("http://www.csie.ntu.edu.tw/~cjlin/libsvm/libsvm-$pkgver.tar.gz")
  22. noextract=()
  23.  
  24. build() {
  25.   cd "$srcdir/$pkgname-$pkgver"
  26.   sed -ie 's/W1/Wl/g' Makefile
  27.   make lib all
  28.   install -D -m755 svm-train $pkgdir/usr/bin/svm-train
  29.   install -D -m755 svm-predict $pkgdir/usr/bin/svm-predict
  30.   install -D -m755 svm-scale $pkgdir/usr/bin/svm-scale
  31.   install -D -m644 java/libsvm.jar $pkgdir/usr/share/java/libsvm.jar
  32.   install -D -m644 libsvm.so.2 $pkgdir/usr/lib/libsvm.so.2
  33.  
  34.   #cp ../setup.py python
  35.   cd "python"
  36.   #python setup.py build || return 1
  37.   #python setup.py install --root $pkgdir
  38.   #python2 setup.py build || return 1
  39.   #python2 setup.py install --root $pkgdir
  40.   install -D -m644 svm.py $pkgdir/usr/lib/python3.2/svm.py
  41.   install -D -m644 svmutil.py $pkgdir/usr/lib/python3.2/svmutil.py
  42.   install -D -m644 svm.py $pkgdir/usr/lib/python2.7/svm.py
  43.   install -D -m644 svmutil.py $pkgdir/usr/lib/python2.7/svmutil.py
  44. }
  45.  
  46. # vim:set ts=2 sw=2 et:
  47. #sha1sums=('7bcd2bb52d807e81556553de3490d56a960189a4')
  48. md5sums=('043d750e4cbbbd7ebed77843c36eb265')
clone this paste RAW Paste Data