/mlpack/PKGBUILD
#! | 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
- # Maintainer: Daniel Wallace <danielwallace at gtmanfred dot com>
- pkgname=mlpack
- pkgver=1.0.1
- pkgrel=1
- pkgdesc="a scalable c++ machine learning library"
- arch=('i686' 'x86_64')
- url="http://www.mlpack.org"
- license=('LGPLv3+')
- depends=('armadillo>=2.4.0' 'boost' 'lapack' 'libxml2')
- makedepends=('cmake>=2.8.0' 'txt2man')
- source=("http://www.$pkgname.org/files/${pkgname}-${pkgver}.tar.gz"
- "http://www.$pkgname.org/files/range_search_install.patch"
- "http://www.$pkgname.org/files/getkernelmatrix_definition.patch"
- "http://www.$pkgname.org/files/no_sparse_tests.patch"
- "http://www.$pkgname.org/files/fully_qualified_as_scalar.patch")
- md5sums=('ecf9279fc8e92836aeb838c127ab79f6'
- '352cdbadf79e6bc17f71c536b0113dae'
- '81d7bea820041a7caa4b2683e536ee1f'
- '44991787106e33443af03c225ab92a3f'
- 'e79dc29cbb5e0575dbc3110c46650e50')
- build() {
- cd "$srcdir/$pkgname-$pkgver"
- patch -Np1 -i "$srcdir/${source[1]##*/}"
- patch -Np1 -i "$srcdir/${source[2]##*/}"
- patch -Np1 -i "$srcdir/${source[3]##*/}"
- patch -Np1 -i "$srcdir/${source[4]##*/}"
- cmake -D CMAKE_INSTALL_PREFIX="$pkgdir/" -D DEBUG=OFF -D PROFILE=OFF .
- make
- }
- check() {
- cd "$srcdir/$pkgname-$pkgver"
- make mlpack_test
- bin/mlpack_test
- }
- package() {
- cd "$srcdir/$pkgname-$pkgver"
-
- make install
- }
- # vim:set ts=2 sw=2 et: