summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6eccc2c093a9357755104f733b5e0d5da4d5e826 (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
# Maintainer: cozisco <cozisco at gmail dot com>
pkgbase=python-salib
pkgname=('python-salib')
_pyname=SALib
pkgver=1.3.11
pkgrel=1
pkgdesc="Tools for sensitivity analysis. Contains Sobol, Morris, and FAST methods"
url="http://salib.github.io/SALib/"
arch=(any)
license=('MIT')
depende=('python-numpy' 'python-matplotlib' 'python-scipy' 'python-pandas')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pyname::1}/$_pyname/$_pyname-$pkgver.tar.gz")
sha256sums=('af07e284ce1e85d2fea6c571b4b3d5c518f70faa518ed890ca4212bd0ad0d3d8')

build() {
    cd "${srcdir}/${_pyname}-${pkgver}"
    python setup.py build
}

package_python-salib() {
    depends=('python-numpy' 'python-matplotlib' 'python-scipy' 'python-pandas')
    
    cd "${srcdir}/${_pyname}-${pkgver}"
    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
    install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/python-salib/LICENSE.txt"
}