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

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"
}