summaryrefslogtreecommitdiff
path: root/pcr/shogun/PKGBUILD
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2015-04-30 01:14:56 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2015-04-30 01:14:56 -0500
commit21f7713881dc864462a2eefcbf3a70861850be5b (patch)
tree44c02b395d69bb2f171db1234a9f781f48aaead8 /pcr/shogun/PKGBUILD
parent0ce30b38346613ebc2506a4e38c3f35525b5b627 (diff)
downloadabslibre-21f7713881dc864462a2eefcbf3a70861850be5b.tar.gz
abslibre-21f7713881dc864462a2eefcbf3a70861850be5b.tar.bz2
abslibre-21f7713881dc864462a2eefcbf3a70861850be5b.zip
shogun-4.0.0-1: updating version
Diffstat (limited to 'pcr/shogun/PKGBUILD')
-rw-r--r--pcr/shogun/PKGBUILD44
1 files changed, 17 insertions, 27 deletions
diff --git a/pcr/shogun/PKGBUILD b/pcr/shogun/PKGBUILD
index a779481b4..68557f914 100644
--- a/pcr/shogun/PKGBUILD
+++ b/pcr/shogun/PKGBUILD
@@ -1,38 +1,28 @@
-# Contributor (Arch) : Fabian Yamaguchi <fabian.yamaguchi@cs.uni-goettingen.de>
+# Contributor (Arch) : Zdeněk Janeček <jan.zdenek@gmail.com>
# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp>
-
-# Based on shogun-git package by
-# Alex Babescu <alex.babescu@gmail.com>
-
pkgname=shogun
-pkgver=3.2.0
+pkgver=4.0.0
pkgrel=1
-pkgdesc="Shogun - A Large Scale Machine Learning Toolbox"
-arch=('i686' 'x86_64' 'mips64el')
+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=('python2' 'python2-numpy' 'swig' 'hdf5' 'blas' 'lapack')
-makedepends=('git' 'python2' 'lzo2' 'glpk' 'gcc' 'make' 'pkg-config' 'libxml2')
-optdepends=('atlas-lapack' 'octave' 'doxygen' 'r')
-provides=('shogun')
-source=("http://shogun-toolbox.org/archives/shogun/releases/3.2/sources/shogun-3.2.0.tar.bz2")
+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}"
- # msg "Starting make..."
-
- # python2 fix
- # sed -i 's/PYTHON=python/PYTHON=python2/g' src/configure
- # sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
- # -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
- # $(find ./ -name '*.py')
-
- #cd src
- #./configure --prefix=/usr
- #make
+ 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}/src"
- make DESTDIR="$pkgdir/" .r-install.sh
-}
+ cd "${srcdir}/${pkgname}-${pkgver}/build"
+ make DESTDIR="$pkgdir/" install
+}