diff options
author | xantares | 2015-06-08 23:38:23 +0200 |
---|---|---|
committer | xantares | 2015-06-08 23:38:23 +0200 |
commit | b077536c9796ffd6a02554fb9a7af16199e3587c (patch) | |
tree | 88987b8ad8094eeb1be9702853bd7608e96ed1f5 | |
download | aur-b077536c9796ffd6a02554fb9a7af16199e3587c.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 35 |
2 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..4c8301987e4c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = python-salib + pkgdesc = Sensitivity Analysis Library in Python (Numpy). Contains Sobol, Morris, and FAST methods. + pkgver = 0.4 + pkgrel = 1 + url = https://github.com/jdherman/SALib + arch = any + license = LGPL + makedepends = python-setuptools + makedepends = python2-setuptools + source = https://github.com/jdherman/SALib/archive/v0.4.tar.gz + md5sums = 6f93928c45a43c2cffa0512fda407100 + +pkgname = python-salib + depends = python-scikit-learn + +pkgname = python2-salib + depends = python2-scikit-learn + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0d494d098f14 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +pkgbase=python-salib +pkgname=('python-salib' 'python2-salib') +pkgver=0.4 +pkgrel=1 +pkgdesc="Sensitivity Analysis Library in Python (Numpy). Contains Sobol, Morris, and FAST methods." +url="https://github.com/jdherman/SALib" +arch=(any) +license=('LGPL') +makedepends=('python-setuptools' 'python2-setuptools') +source=("https://github.com/jdherman/SALib/archive/v$pkgver.tar.gz") +md5sums=('6f93928c45a43c2cffa0512fda407100') + +build() { + cp -r "${srcdir}"/SALib-$pkgver "${srcdir}"/SALib-$pkgver-py2 + + cd "${srcdir}"/SALib-$pkgver + python setup.py build + + cd "${srcdir}"/SALib-$pkgver-py2 + python2 setup.py build +} + +package_python-salib() { + depends=('python-scikit-learn') + + cd "${srcdir}/SALib-$pkgver" + python setup.py install --root=${pkgdir} +} + +package_python2-salib() { + depends=('python2-scikit-learn') + + cd "${srcdir}/SALib-$pkgver" + python2 setup.py install --root=${pkgdir} +} |