# Maintainer: Roberto Hueso < robertohueso96 at gmail dot com > # Former Maintainer: jerry73204 # Former Maintainer: Govind Gopakumar < govind.93 at gmail dot com> # Former Maintainer: Daniel Wallace pkgname=mlpack pkgver=3.2.1 pkgrel=1 pkgdesc='a scalable c++ machine learning library' arch=('x86_64') url="http://www.mlpack.org" license=('BSD') depends=( 'armadillo' 'boost>=1.49' 'lapack' 'libxml2>=2.6.0' 'cython>=0.24' 'python-numpy' 'python-pandas>=0.15.0' ) optdepends=( 'openmp: parallel computation support' ) makedepends=( 'cmake>=3.3.2' 'txt2man' 'python-setuptools' 'python-pytest-runner' ) source=("http://www.mlpack.org/files/${pkgname}-${pkgver}.tar.gz") sha256sums=('3fa25157a0a6e91fd5ba223ebd911e5d86c0664d969ea3f7768d823448562f36') build() { cd "${srcdir}/${pkgname}-${pkgver}" cmake \ -D CMAKE_INSTALL_PREFIX="${pkgdir}/usr" \ -D BUILD_PYTHON_BINDINGS=ON \ -D BUILD_TESTS=OFF \ -D USE_OPENMP=ON \ . make } # check() { # # Comment out check() if there are failed tests. If you consider it a bug, # # please file an issue on upstream instead of AUR. # cd "${srcdir}/${pkgname}-${pkgver}" # make mlpack_test # bin/mlpack_test # } package() { cd "${srcdir}/${pkgname}-${pkgver}" make install install -m 755 -d "${pkgdir}/usr/share/licenses/${pkgname}" install -m 644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}" rm -rf ${pkgdir}/usr/lib/python3.6/site-packages/{site.py,__pycache__,easy-install.pth} }