summaryrefslogtreecommitdiff
path: root/pcr/shogun/PKGBUILD
blob: 89cc68a0df49f1c98b2c61d6e58093041b5f480e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Maintainer (Arch): Zdeněk Janeček <jan.zdenek@gmail.com>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
pkgname=shogun
pkgver=4.0.0
pkgrel=2
pkgdesc="Shogun - A Large Scale Machine Learning Toolbox with the python interface"
arch=('i686' 'x86_64')
url="http://www.shogun-toolbox.org"
license=('GPLv3')
depends=('cblas' 'lapack' 'swig' 'python-numpy' 'libcl')
makedepends=('cmake')
source=(http://shogun-toolbox.org/archives/shogun/releases/4.0/sources/$pkgname-$pkgver.tar.bz2)
md5sums=('57370e869f3b24f74ce9c7b8741000b0')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  mkdir build && cd build
  DISABLE_SSE=
  if [ "${CARCH}" != "x86_64" ]; then
    DISABLE_SSE+="-DDISABLE_SSE=ON"
  fi
  cmake -DCMAKE_INSTALL_PREFIX=/usr -DPythonModular=ON ${DISABLE_SSE} ..
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}/build"
  make DESTDIR="$pkgdir/" install
}