summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e9e52c8bba1cbc8e8a6220ab74afb0c2da37045d (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
# Maintainer: Liam Timms <timms5000 at gmail dot com>
# Contributor: Dario Bosch <LastnameFirstname at gmail dot com>

_pkgname='mrtrix3'
pkgname="${_pkgname}-git"
pkgver=3.0.3.r105.gd3941f443
pkgrel=1
pkgdesc="tools for diffusion MRI analyses, data conversion and a viewer (mrview)"
arch=('x86_64')
url="https://github.com/MRtrix3/${_pkgname}"
license=('MPL2')
depends=('qt5-svg' 'python')
optdepends=('libtiff' 'fftw')
makedepends=('gcc' 'git' 'eigen')
provides=('mrtrix3')
conflicts=('mrtrix3')
source=("${pkgname}::git+https://github.com/MRtrix3/${_pkgname}.git")
sha256sums=('SKIP')

pkgver() {
    cd "$srcdir/${pkgname}"
    git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd "${pkgname}"
	./configure
	./build
}

package() {
  	cd "${pkgname}"
	mkdir -p "$pkgdir/usr/bin"
	mkdir -p "$pkgdir/usr/lib"
  	cp -R ./bin/* "$pkgdir/usr/bin"
	cp -R ./lib/* "$pkgdir/usr/lib"
	chmod -R 755 "$pkgdir/usr/bin"
	chmod -R 755 "$pkgdir/usr/lib"
}