# Maintainer: Erich Eckner # Contributor: Leonid B # Upstream contact: silx at esrf dot fr pkgname=python-fabio _pkgname=fabio pkgver=0.12.0 pkgrel=20 pkgdesc="I/O library for images produced by 2D X-ray detectors." arch=('i686' 'pentium4' 'x86_64') url="http://www.silx.org" license=('MIT' 'LGPL' 'Apache') _pinned_dependencies=( 'glibc>=2.31' ) depends=( "${_pinned_dependencies[@]}" 'cython' 'python<3.10' 'python>=3.9' 'python-h5py' 'python-lxml>=4.6.3' 'python-numpy' 'python-setuptools' 'python-sphinx' 'python-sphinxcontrib-programoutput') makedepends=( 'cython' 'python-setuptools') optdepends=('python-pyqt4: for the fabio_viewer program') source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/silx-kit/${_pkgname}/archive/v${pkgver}.tar.gz") sha512sums=('b9a2d31d7314ae2c7b6884dce730726bad37d65bf4240b28b2d34ca6969f7f79c2ea98c26af831d2722f35e4a9c1a0d4793c12b303b2c425e2eaf7c749ebc970') build() { cd "${srcdir}/${_pkgname}-${pkgver}" python setup.py build } package_python-fabio() { cd "${srcdir}/${_pkgname}-${pkgver}" python setup.py install --root="${pkgdir}/" --optimize=1 install -D copyright "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }