blob: 3fc4fa532f57ad542f8b01b5f4ff31522f2c48fd (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Maintainer: Feakster <feakster at posteo dot eu>
### Notes ###
# - Repo: 'https://github.com/physimals/oxasl'
# - Docs: 'https://oxasl.readthedocs.io/en/latest/'
### Info ###
pkgname=python-oxasl
_pkgname=${pkgname/python-/}
pkgver=0.1.12
pkgrel=1
pkgdesc='OXASL is a package for performing Bayesian analysis of Arterial Spin Labelling MRI data'
arch=('any')
url='https://oxasl.readthedocs.io'
license=('custom:OXASL license')
depends=('fslpy>=1.13' 'python' 'python-numpy' 'python-pandas' 'python-pyaml' 'python-pyfab' 'python-nibabel' 'python-scikit-image' 'python-six')
makedepends=('git' 'python-setuptools')
checkdepends=('python-pytest')
source=("$pkgname::git+https://github.com/physimals/${_pkgname}.git#tag=v$pkgver")
b2sums=('SKIP')
### Build ###
build() {
## Change Directory ##
cd "$srcdir/$pkgname"
## Build ##
python setup.py build
}
### Check ###
check() {
## Change Directory ##
cd "$srcdir/$pkgname"
## Test ##
pytest
}
### Package ###
package() {
## Change Directory ##
cd "$srcdir/$pkgname"
## Install Package ##
python setup.py install \
--prefix=/usr \
--root="$pkgdir"/ \
--optimize=1 \
--skip-build
## Install License ##
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
## Install Docs ##
install -Dm644 README.md "$pkgdir"/usr/share/doc/$pkgname/README.md
}
|