diff options
author | Erich Eckner <git@eckner.net> | 2017-10-05 13:11:46 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-10-05 13:11:46 +0200 |
commit | 98f1780d28d047337f4c7448b939df6da4036c4f (patch) | |
tree | 7cdec247df1672f859beabb3a07f16c641f91fad /python-scikit-image/PKGBUILD | |
parent | 47ab3c23b827a16b562187a6648208874780e582 (diff) | |
download | archlinuxewe-98f1780d28d047337f4c7448b939df6da4036c4f.tar.xz |
python-scikit-image neu
Diffstat (limited to 'python-scikit-image/PKGBUILD')
-rw-r--r-- | python-scikit-image/PKGBUILD | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/python-scikit-image/PKGBUILD b/python-scikit-image/PKGBUILD new file mode 100644 index 000000000..b22e90f57 --- /dev/null +++ b/python-scikit-image/PKGBUILD @@ -0,0 +1,61 @@ +# Maintainer: Erich Eckner <arch at eckner dot net> +# Contributor: Jaroslav Lichtblau <svetlemodry@archlinux.org> +# Contributor: Andrzej Giniewicz <gginiu@gmail.com> + +pkgbase=python-scikit-image +pkgname=('python2-scikit-image' 'python-scikit-image') +pkgver=0.13.1 +pkgrel=1 +pkgdesc="Image processing routines for SciPy" +arch=('i686' 'x86_64') +url="http://scikit-image.org/" +license=('BSD') +_depends=('python-scipy' 'python-matplotlib' 'python-networkx' + 'python-pillow' 'python-pywavelets') +makedepends=('cython2' 'cython' 'python2-six' 'python-six' "${_depends[@]}" "${_depends[@]/python-/python2-}") +options=('!emptydirs') +source=(https://pypi.python.org/packages/83/2a/c5a39c12c196c19a443fa4d17c0768a24231e46ae952930a9d66bad45557/scikit-image-${pkgver}.tar.gz) +sha512sums=('fba2700743486e1c556c697ec307ed972b8a70d7829a6fab3360f91542322a250d2f0fd32c5ec442409f5ebbec01b0550bfce037d8bb0667ff2286731b7a6263') + +prepare() { + cd "${srcdir}" + cp -a scikit-image-$pkgver scikit-image-py2-$pkgver + cd scikit-image-py2-$pkgver + + sed -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \ + -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \ + -e "s|#![ ]*/bin/env python$|#!/usr/bin/env python2|" \ + -i $(find . -name '*.py') +} + +build() { + msg "Building Python2" + cd "${srcdir}"/scikit-image-py2-$pkgver + python2 setup.py build + + msg "Building Python3" + cd "${srcdir}"/scikit-image-$pkgver + python setup.py build +} + +package_python2-scikit-image() { + depends=("${_depends[@]/python-/python2-}") + optdepends=('python2-pyqt4: for imshow(x, fancy=True) and skivi' + 'freeimage: for reading various types of image file formats') + cd "${srcdir}"/scikit-image-py2-$pkgver + + python2 setup.py install --root="${pkgdir}"/ --optimize=1 + mv "${pkgdir}"/usr/bin/skivi "${pkgdir}"/usr/bin/skivi2 + install -D LICENSE.txt "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE +} + +package_python-scikit-image() { + depends=("${_depends[@]}") + 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') + cd "${srcdir}"/scikit-image-$pkgver + + python setup.py install --root="${pkgdir}"/ --optimize=1 + install -D LICENSE.txt "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE +} |