summaryrefslogtreecommitdiff
path: root/python-fabio/PKGBUILD
blob: 6286281ca309d138c7e270b1b36b37a05588d2c7 (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
# 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.10.2
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')
depends=(
  'cython'
  'python>=3.8'
  'python<3.9'
  'python-lxml'
  'python-numpy'
  'python-sphinx'
  'python-sphinxcontrib-programoutput')
makedepends=(
  '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=('6566096d6724a013a6184a86c45c29b7055258e63b976f449061400cdb7f79757b1eaa804a02b346ce9badab01a1b3b8f6d4bc0a4ff3e18a3f5e85c6c1b4acb9')

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