blob: 4fc6473fe41e965bc371bb3b36a29d9cbe8ded8d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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.14.0
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/fc/20/d3e736493b16e9455ce8579722d644b313814c599d5824d34e448845f746/scikit-image-${pkgver}.tar.gz)
sha512sums=('224a6af745e1eb7d38c425afa411a9baac3e9504b639233fd10300a55006c3babdf40a3e7ee124e81b327c9f06d0baf35d3f2ccf8f69d3d2d6a54be0e40132f9')
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
}
|