summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7c27ccaae835e5a85c9f896d97f88baa6446f443 (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
58
59
60
# Maintainer: Feakster <feakster at posteo dot eu>

### Notes ###
# - Repo: 'https://github.com/physimals/pyfab'
# - Docs: 'https://pyfab.readthedocs.io/en/latest/'
# - Fabber is provided by FSL, but can be installed as a standalone (https://github.com/physimals/fabber_core)
# - Currently triggers test failures

### Info ###
pkgname=python-pyfab
_pkgname=${pkgname/python-/}
pkgver=0.3.5
pkgrel=1
pkgdesc='Python interface to the Fabber Bayesian model fitting tool'
arch=('any')
url='https://pyfab.readthedocs.io'
license=('custom:PYFAB license')
depends=('fsl>=6.0.1' 'python' 'python-numpy' 'python-nibabel' 'python-six')
optdepends=('fslpy: MVN functionality')
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
}