PageRenderTime 4592ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 0ms

/mlpack/PKGBUILD

https://bitbucket.org/axil42/aur-mirror
#! | 48 lines | 39 code | 9 blank | 0 comment | 0 complexity | 63ecba5675263225ee05b14b2414386e MD5 | raw file
Possible License(s): IPL-1.0, Apache-2.0, LGPL-2.0, Unlicense, MPL-2.0-no-copyleft-exception, LGPL-2.1, JSON, GPL-3.0, MPL-2.0, CC0-1.0, CC-BY-SA-3.0, LGPL-3.0, WTFPL, BSD-2-Clause, 0BSD, BitTorrent-1.0, Cube, EPL-1.0, ISC, BSD-3-Clause, AGPL-3.0, GPL-2.0, MIT, AGPL-1.0, CC-BY-3.0
  1. # Maintainer: Daniel Wallace <danielwallace at gtmanfred dot com>
  2. pkgname=mlpack
  3. pkgver=1.0.1
  4. pkgrel=1
  5. pkgdesc="a scalable c++ machine learning library"
  6. arch=('i686' 'x86_64')
  7. url="http://www.mlpack.org"
  8. license=('LGPLv3+')
  9. depends=('armadillo>=2.4.0' 'boost' 'lapack' 'libxml2')
  10. makedepends=('cmake>=2.8.0' 'txt2man')
  11. source=("http://www.$pkgname.org/files/${pkgname}-${pkgver}.tar.gz"
  12. "http://www.$pkgname.org/files/range_search_install.patch"
  13. "http://www.$pkgname.org/files/getkernelmatrix_definition.patch"
  14. "http://www.$pkgname.org/files/no_sparse_tests.patch"
  15. "http://www.$pkgname.org/files/fully_qualified_as_scalar.patch")
  16. md5sums=('ecf9279fc8e92836aeb838c127ab79f6'
  17. '352cdbadf79e6bc17f71c536b0113dae'
  18. '81d7bea820041a7caa4b2683e536ee1f'
  19. '44991787106e33443af03c225ab92a3f'
  20. 'e79dc29cbb5e0575dbc3110c46650e50')
  21. build() {
  22. cd "$srcdir/$pkgname-$pkgver"
  23. patch -Np1 -i "$srcdir/${source[1]##*/}"
  24. patch -Np1 -i "$srcdir/${source[2]##*/}"
  25. patch -Np1 -i "$srcdir/${source[3]##*/}"
  26. patch -Np1 -i "$srcdir/${source[4]##*/}"
  27. cmake -D CMAKE_INSTALL_PREFIX="$pkgdir/" -D DEBUG=OFF -D PROFILE=OFF .
  28. make
  29. }
  30. check() {
  31. cd "$srcdir/$pkgname-$pkgver"
  32. make mlpack_test
  33. bin/mlpack_test
  34. }
  35. package() {
  36. cd "$srcdir/$pkgname-$pkgver"
  37. make install
  38. }
  39. # vim:set ts=2 sw=2 et: