summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD56
2 files changed, 77 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..464bffe5607
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = mrtrix3
+ pkgdesc = tools for diffusion MRI analyses, data conversion and a viewer (mrview)
+ pkgver = r6677.fce21191
+ pkgrel = 1
+ url = https://github.com/MRtrix3/mrtrix3
+ arch = x86_64
+ license = MPL2
+ makedepends = gcc
+ makedepends = git
+ makedepends = eigen
+ depends = qt5-svg
+ depends = python
+ optdepends = libtiff
+ optdepends = fftw
+ provides = mrtrix3
+ conflicts = mrtrix3
+ source = mrtrix3-git::git+https://github.com/MRtrix3/mrtrix3#commit=fce21191
+ sha256sums = SKIP
+
+pkgname = mrtrix3
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..cb94e58b1cb
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,56 @@
+# Maintainer: Dario Bosch <LastnameFirstname at gmail dot com>
+
+pkgname=mrtrix3
+pkgver=r6677.fce21191
+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=(
+ # 'zlib' # already installed as dependency of python
+ # 'qt5-base' # already installed as dependency of qt5-svg
+ 'qt5-svg'
+ 'python'
+ )
+
+optdepends=(
+ 'libtiff'
+ 'fftw'
+ )
+
+makedepends=(
+ 'gcc'
+ 'git'
+ 'eigen'
+)
+
+provides=('mrtrix3')
+conflicts=('mrtrix3')
+
+source=("${pkgname}-git::git+https://github.com/MRtrix3/${pkgname}#commit=$(cut -d'.' -f2 <<< ${pkgver})")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/${pkgname}-git"
+ printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ # Set CPU architecture to the building system's architecture
+ export ARCH=native
+ cd "${pkgname}-git"
+ ./configure
+ ./build
+}
+
+package() {
+ cd "${pkgname}-git"
+ 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"
+}