blob: c2a41fe4d3c21fb033236dc3fd5ac6bfc0e53b95 (
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
# Maintainer: Erich Eckner <arch at eckner dot net>
# Contributor: Leonid B <leonid dot bloch at esrf dot fr>
# Upstream contact: silx at esrf dot fr
pkgbase=python-silx
pkgname=(python2-silx python-silx)
_pkgname=silx
pkgver=0.9.0
pkgrel=1
pkgdesc="A collection of Python packages for data analysis at synchrotron radiation facilities."
arch=('i686' 'x86_64')
url="http://www.silx.org"
license=('MIT' 'LGPL')
_deppy2=(
'python2>=2.7'
'python2<2.8'
)
_deppy=(
'python>=3.7'
'python<3.8'
)
_depends=(
'python-fabio>=0.7'
'python-h5py'
'python-mako'
'python-matplotlib>=1.2.0'
'python-numpy>=1.8'
'python-pillow'
'python-pyopencl'
'python-pyqt5'
'python-dateutil'
'python-qtconsole'
'python-scipy')
_makedepends=(
'cython'
'python-setuptools')
_optdepends=('python-h5py: for HDF5 input/output'
'ipython: for interactive console'
'python-qtconsole: for GUI console'
'python-pyopencl: for sift - OpenCL implementation'
'opencl-driver: for sift - OpenCL implementation')
source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/silx-kit/${_pkgname}/archive/v${pkgver}.tar.gz")
sha512sums=('ad9a704601ef1b20f7ab9ad6efc1f619fae5de4afdb919e0eb4b0f3460fecd5c6bcce2e2a570c69d9e2106a1e4c8e99f284a675d2bc09b486245f7acd63278f9')
makedepends=(
"${_deppy[@]}"
"${_deppy2[@]}"
"${_depends[@]}"
"${_depends[@]//python/python2}"
"${_makedepends[@]}"
"${_makedepends[@]//ython/ython2}"
)
prepare() {
cp -r "${_pkgname}-${pkgver}" "py2-${_pkgname}-${pkgver}"
mv "${_pkgname}-${pkgver}" "py-${_pkgname}-${pkgver}"
}
build() {
cd "${srcdir}/py-${_pkgname}-${pkgver}"
python setup.py build
cd "${srcdir}/py2-${_pkgname}-${pkgver}"
python2 setup.py build
}
package_python2-silx() {
depends=(
"${_deppy2[@]}"
"${_depends[@]//python/python2}"
)
optdepends=(
"${_optdepends[@]//python/python2}"
)
cd "${srcdir}/py2-${_pkgname}-${pkgver}"
python2 setup.py install --root="${pkgdir}/" --optimize=1
install -D copyright "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
mv "${pkgdir}/usr/bin/silx" "${pkgdir}/usr/bin/silx2"
sed -i '1 s/python/python2/' "${pkgdir}/usr/bin/silx2"
mv \
"${pkgdir}/usr/silx/third_party/_local/scipy_spatial/qhull/COPYING.txt" \
"${pkgdir}/usr/silx/third_party/_local/scipy_spatial/qhull/COPYING2.txt"
}
package_python-silx() {
depends=(
"${_deppy[@]}"
"${_depends[@]}"
)
optdepenends=(
"${_optdepends[@]}"
)
cd "${srcdir}/py-${_pkgname}-${pkgver}"
python setup.py install --root="${pkgdir}/" --optimize=1
install -D copyright "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|