summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrzej Giniewicz2015-07-07 20:27:20 +0200
committerAndrzej Giniewicz2015-07-07 20:27:20 +0200
commit534fa8d42bcf72305ae47d449e31e6350deff74d (patch)
tree8f899d89e9da6386624b29f800c7bf6ea19e103c
downloadaur-534fa8d42bcf72305ae47d449e31e6350deff74d.tar.gz
Initial import
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD36
2 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..82b02c98b7e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = python2-mdp
+ pkgdesc = Modular toolkit for Data Processing
+ pkgver = 3.3
+ pkgrel = 1
+ url = http://mdp-toolkit.sourceforge.net/index.html
+ arch = any
+ license = LGPL3
+ depends = python2-numpy
+ optdepends = python2-scipy: for faster eigensolver, FFT and convolution routines
+ optdepends = parallel-python: for parallel python scheduler
+ optdepends = shogun: for Shogun SVM classifier
+ optdepends = libsvm: for libSVM SVM classifier
+ optdepends = python2-joblib: for caching extension and caching context manager
+ optdepends = scikits-learn: for scikits-learn algorithms wrappers
+ options = !emptydirs
+ source = http://downloads.sourceforge.net/project/mdp-toolkit/mdp-toolkit/3.3/MDP-3.3.tar.gz
+ md5sums = 5956284a419a431a980129485f111602
+
+pkgname = python2-mdp
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..58d453b87cb
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Andrzej Giniewicz <gginiu@gmail.com>
+pkgname=python2-mdp
+pkgver=3.3
+pkgrel=1
+pkgdesc="Modular toolkit for Data Processing"
+arch=('any')
+url="http://mdp-toolkit.sourceforge.net/index.html"
+license=('LGPL3')
+depends=('python2-numpy')
+optdepends=('python2-scipy: for faster eigensolver, FFT and convolution routines'
+ 'parallel-python: for parallel python scheduler'
+ 'shogun: for Shogun SVM classifier'
+ 'libsvm: for libSVM SVM classifier'
+ 'python2-joblib: for caching extension and caching context manager'
+ 'scikits-learn: for scikits-learn algorithms wrappers')
+
+options=(!emptydirs)
+
+source=("http://downloads.sourceforge.net/project/mdp-toolkit/mdp-toolkit/$pkgver/MDP-$pkgver.tar.gz")
+md5sums=('5956284a419a431a980129485f111602')
+
+build() {
+ cd "$srcdir/MDP-$pkgver"
+
+ python2 setup.py build
+}
+
+package() {
+ cd "$srcdir/MDP-$pkgver"
+
+ python2 setup.py install --root="$pkgdir"/ --optimize=1
+
+ sed -i -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
+ $(find "${pkgdir}" -name '*.py')
+}
+