# Maintainer: Erich Eckner # Contributor: Jaroslav Lichtblau # Contributor: Andrzej Giniewicz pkgname='python-scikit-image' _pkgname="${pkgname#*-}" pkgver=0.18.1 pkgrel=1 pkgdesc="Image processing routines for SciPy" arch=('i686' 'pentium4' 'x86_64') url="http://scikit-image.org/" license=('BSD') _pinned_dependencies=( 'gcc-libs=10.2.0' 'glibc>=2.31' ) depends=( "${_pinned_dependencies[@]}" 'python>=3.9' 'python<3.10' 'python-imageio>=2.3.0' 'python-matplotlib>=2.0.0' 'python-networkx>=2.0' 'python-numpy>=1.15.1' 'python-pillow>=4.3.0' 'python-pywavelets>=1.1.1' 'python-scipy>=1.0.1' 'python-tifffile>=2019.7.26') makedepends=( 'cython>=0.23') optdepends=( 'python-pyqt4: for imshow(x, fancy=True) and skivi' 'freeimage: for reading various types of image file formats' 'python-pyamg: fast cg_mg mode of random walker segmentation' ) options=('!emptydirs') source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/${_pkgname}/${_pkgname}/archive/v${pkgver}.tar.gz") sha512sums=('a13aa5e6943dd8e537ae1c7d7d5ef1607dda9c6eabceae06df3d985ee8dc8abfbc5a05bad952568a94d677b9198d871f9154fa801fd61134fc5cdd007e79d035') build() { cd "${srcdir}/${_pkgname}-${pkgver}" python setup.py build } package() { cd "${srcdir}/${_pkgname}-${pkgver}" python setup.py install --root="${pkgdir}"/ --optimize=1 install -D LICENSE.txt "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE }