# Maintainer: Tobias Bachmann pkgname=fsleyes pkgver=1.4.6 pkgrel=1 pkgdesc="FSLeyes is the FSL image viewer" arch=('any') url="https://fsl.fmrib.ox.ac.uk/fsl/fslwiki/FSLeyes" license=('Apache') groups=() depends=('python' 'python-setuptools' 'python-sphinx' 'python-six' 'python-numpy' 'python-dill' 'python-matplotlib' 'python-nibabel' 'python-jinja' 'python-opengl' 'python-pyparsing' 'python-pillow' 'python-scipy' 'python-opengl-accelerate' 'python-wheel' 'python-twine' 'python-pytest-timeout' 'python-pytest-xdist' 'python-certifi' 'python-wxpython>=4.0.1-2' 'python-xarray' 'python-parse' 'fslpy>=3.9.5' 'fsleyes-widgets>=0.12.3' 'fsleyes-props>=1.7.3' 'python-file-tree>=0.4.0') optdepends=('fsl: Enable loading standard images and advanced features (highly recommended)' 'python-wxnatpy: Enable loading overlay from XNAT' 'python-indexed-gzip: Fast random access of gzipped image files' 'python-rtree' 'jupyter-notebook' 'python-trimesh') makedepends=() provides=() conflicts=() replaces=() source=("https://git.fmrib.ox.ac.uk/fsl/${pkgname}/${pkgname}/-/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz" "${pkgname}.desktop") sha256sums=('8306942235a7b26c461cb4fa3cdac04819cd141a1bce585a80a65373242fc172' '6e91e88eb74602f8da7cda6575245dbaaf4577022bffe15c0efedb33106139fb') package() { cd "${srcdir}/${pkgname}-${pkgver}" # Workaround for pyparsing > 2 sed -i '/pyparsing==2\.\*/d' requirements.txt python setup.py install --root="${pkgdir}/" --optimize=1 install -Dm644 ./fsleyes/assets/icons/app_icon/fsleyes.iconset/icon_512x512.png "${pkgdir}"/usr/share/icons/hicolor/512x512/apps/${pkgname}.png install -Dm644 "${srcdir}"/${pkgname}.desktop "${pkgdir}"/usr/share/applications/${pkgname}.desktop }