summaryrefslogtreecommitdiff
path: root/python-pyfai/PKGBUILD
blob: 8fb5c778935c5aad7758f260fc39cd644aa301aa (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
# 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
pkgname=python-pyfai
_pkgname=pyFAI
pkgver=0.21.3
pkgrel=2
pkgdesc="Fast Azimuthal Integration in Python."
arch=('i686' 'pentium4' 'x86_64')
url="http://www.silx.org"
license=('GPLv3' 'BSD' 'MIT')
_pinned_dependencies=(
  'gcc-libs=12.1.0'
  'glibc>=2.31'
)
depends=(
  "${_pinned_dependencies[@]}"
  'cython'
  'python>=3.10'
  'python<3.11'
  'python-bash_kernel'
  'python-fabio'
  'python-h5py'
#  'python-hdf5plugin'
  'python-ipympl'
  'python-matplotlib'
#  'python-nbsphinx'
  'python-numexpr'
  'python-numpy'
  'python-pyfai'
  'python-opengl'
  'python-pyqt5'
  'python-scipy'
  'python-silx>=0.15.2'
#  'python-transformations'
  'python-wheel')
makedepends=(
  'python-setuptools')
source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/silx-kit/${_pkgname}/archive/v${pkgver}.tar.gz")
sha512sums=('606197b81aefd76d41cae781b742b961509915c6cd3beaac861d63a21d1a4dedf2d543d11dbb952babc325219a1658a4527a49c67d3f54e69c431bcd6fa96ee6')

build() {
  cd "${srcdir}/${_pkgname}-${pkgver}"
  python setup.py build
}

package() {
  cd "${srcdir}/${_pkgname}-${pkgver}"
  python setup.py install --root="${pkgdir}/" --optimize=1
  install -D LICENSES.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  install -D copyright "${pkgdir}/usr/share/licenses/${pkgname}/COPYRIGHT"
}