summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 99bb057e0b8235c4a45fdbf750f32b6235d3842e (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
30
31
32
33
34
35
# Maintainer: dobedobedo <dobe0331 at gmail dot com>
_pkgname='pymcr'
_pkgfolder='pyMCR'
pkgname=("python-$_pkgname")
pkgver=0.5.1
pkgrel=1
pkgdesc="Multivariate Curve Resolution in Python."
arch=('x86_64')
depends=('python'
         'python-numpy'
         'python-scipy'
	    )
makedepends=('python-setuptools'
             'python-pytest')
optdepends=('python-scikit-learn: Provide more efficient regression methods')
url='https://github.com/usnistgov/pyMCR'
license=('custom')
sha256sums=('cefa25c5cc788e466c074aa562baf9f0a91f73bf7d37b04ca82ff2604cc3bf2e')
_source_url="https://files.pythonhosted.org/packages/41/2f/9aa68ca89facba9efab95fdfe38c0368b6ccc1124088986ec3c050e9ea17"
source=("$_source_url/pyMCR-$pkgver.tar.gz")

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

check(){
    cd "$srcdir/$_pkgfolder-$pkgver/"
    pytest
}

package() {
    cd "$srcdir/$_pkgfolder-$pkgver/"
    python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}