blob: c28a4b5133c07e2c9bd458c85271fe9c18b5ed5a (
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
|
# Maintainer: Tobias Bachmann <tobachmann@gmx.de>
# Contributor: fishburn <frankthefishburn@gmail.com>
pkgname=fsl
pkgver=6.0.7.16
pkgrel=1
pkgdesc="A comprehensive library of analysis tools for FMRI, MRI and DTI brain imaging data"
arch=("x86_64")
url="http://www.fmrib.ox.ac.uk/fsl/"
license=('custom')
depends=('python')
source=("fslinstaller.py")
options=('!strip') # Added as it took hours to do this without substantial benefit
sha256sums=('5a9c838353b6fc5346d10b7f758d0084e208e6c8dd2cec9d01694fee293f260c')
build() {
export TMPFSLDIR="${srcdir}/fsl"
mkdir -p "${TMPFSLDIR}"
/usr/bin/python3 "${srcdir}"/fslinstaller.py -n -o -d "${TMPFSLDIR}" -V "${pkgver}"
}
package() {
# Replace paths and move files in place
find "${TMPFSLDIR}" -type f -exec grep -Iq . {} \; -exec sed -i "s|${srcdir}|/opt|g" {} +
mkdir "${pkgdir}"/opt
mv "${TMPFSLDIR}" "${pkgdir}"/opt
# Copy license
mkdir -p "${pkgdir}"/usr/share/licenses/fsl
cp "${pkgdir}"/opt/fsl/LICENCE.FSL "${pkgdir}"/usr/share/licenses/fsl/LICENSE
# Setup shell environment
mkdir -p "${pkgdir}/etc/profile.d"
echo 'FSLDIR=/opt/fsl' > "${pkgdir}/etc/profile.d/fsl.sh"
echo '. ${FSLDIR}/etc/fslconf/fsl.sh' >> "${pkgdir}/etc/profile.d/fsl.sh"
echo 'export FSLDIR' >> "${pkgdir}/etc/profile.d/fsl.sh"
}
|