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

### Notes ###
# - Repo: 'https://github.com/physimals/oxasl_ve'
# - Docs: 'https://oxasl.readthedocs.io'

### Info ###
pkgname=python-oxasl-ve
pkgver=0.1.1
pkgrel=2
pkgdesc='Python interface to the C++ based VEASLC tool for Vessel-encoded ASL designed for use with the OXASL processing pipeline'
arch=('any')
url='https://oxasl.readthedocs.io'
license=('APACHE')
depends=('fslpy>=1.13' 'python' 'python-numpy' 'python-oxasl')
makedepends=('git' 'python-setuptools')
# checkdepends=('python-pytest')
source=("$pkgname::git+https://github.com/physimals/oxasl_ve.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"
#
#     ## Run pytest ##
#     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
}