From 98f1780d28d047337f4c7448b939df6da4036c4f Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 5 Oct 2017 13:11:46 +0200 Subject: python-scikit-image neu --- python-scikit-image/PKGBUILD | 61 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 python-scikit-image/PKGBUILD (limited to 'python-scikit-image') diff --git a/python-scikit-image/PKGBUILD b/python-scikit-image/PKGBUILD new file mode 100644 index 00000000..b22e90f5 --- /dev/null +++ b/python-scikit-image/PKGBUILD @@ -0,0 +1,61 @@ +# Maintainer: Erich Eckner +# Contributor: Jaroslav Lichtblau +# Contributor: Andrzej Giniewicz + +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 +} -- cgit v1.2.3-54-g00ecf