summaryrefslogtreecommitdiff
path: root/python-fabio/PKGBUILD
blob: fd61ea5291e50775e2bc96572ac588f3922cec95 (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
# 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-fabio
_pkgname=fabio
pkgver=0.13.0
pkgrel=1
pkgdesc="I/O library for images produced by 2D X-ray detectors."
arch=('i686' 'pentium4' 'x86_64')
url="http://www.silx.org"
license=('MIT' 'LGPL' 'Apache')
_pinned_dependencies=(
  'glibc>=2.31'
)
depends=(
  "${_pinned_dependencies[@]}"
  'cython'
  'python>=3.10'
  'python<3.11'
  'python-h5py'
  'python-lxml>=4.6.3'
  'python-numpy'
  'python-setuptools'
  'python-sphinx'
  'python-sphinxcontrib-programoutput')
makedepends=(
  'cython'
  'python-setuptools')
optdepends=('python-pyqt4: for the fabio_viewer program')
source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/silx-kit/${_pkgname}/archive/v${pkgver}.tar.gz")
sha512sums=('198272a17039425b0e869395df3635e98d2501f8248627085037a24f6df6f6784b47a04e56ca469414352ed8c8d466acd74b8e3e1f9a6c2b5f6b4f53b7b5361b')

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

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