summaryrefslogtreecommitdiff
path: root/python-fabio/PKGBUILD
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-02-24 09:08:05 +0100
committerErich Eckner <git@eckner.net>2020-02-24 09:08:05 +0100
commit4ac7650bc9b9d15c8b225e3f78134de5137762df (patch)
treefbaecba02713c86b69d8a03e70b6c65958ca8f80 /python-fabio/PKGBUILD
parent26e2d83c6fe2155e3fe082fd65afbfa9ed223b60 (diff)
downloadarchlinuxewe.git.save-4ac7650bc9b9d15c8b225e3f78134de5137762df.tar.xz
python-fabio: 0.9.0-7 -> 0.9.0-8
Diffstat (limited to 'python-fabio/PKGBUILD')
-rw-r--r--python-fabio/PKGBUILD64
1 files changed, 8 insertions, 56 deletions
diff --git a/python-fabio/PKGBUILD b/python-fabio/PKGBUILD
index 63c2516a..e2691f29 100644
--- a/python-fabio/PKGBUILD
+++ b/python-fabio/PKGBUILD
@@ -1,83 +1,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
-pkgbase=python-fabio
-pkgname=(python2-fabio python-fabio)
+pkgname=python-fabio
_pkgname=fabio
pkgver=0.9.0
-pkgrel=7
+pkgrel=8
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')
-_deppy2=(
- 'python2>=2.7'
- 'python2<2.8'
-)
-_deppy=(
+depends=(
+ 'cython'
'python>=3.8'
'python<3.9'
-)
-_depends=(
- 'cython'
'python-lxml'
'python-numpy'
'python-sphinx'
'python-sphinxcontrib-programoutput')
-_makedepends=(
+makedepends=(
'python-setuptools')
-_optdepends=('python-pyqt4: for the fabio_viewer program')
+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=('feb81c076ac9f32553beaa1a2c9edf8cadb6dd6ef80cef70b5159014eb2ae0d1b0a5a57c3baaf942876c52b1fd38d9335b9a1ad6f7af38a8836ea31e3055d45c')
-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}"
+ cd "${srcdir}/${_pkgname}-${pkgver}"
python setup.py build
-
- cd "${srcdir}/py2-${_pkgname}-${pkgver}"
- python2 setup.py build
-}
-
-package_python2-fabio() {
- 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"
- for suffix in '-convert' '_viewer'; do
- mv "${pkgdir}/usr/bin/fabio${suffix}" "${pkgdir}/usr/bin/fabio2${suffix}"
- sed -i '1 s/python/python2/' "${pkgdir}/usr/bin/fabio2${suffix}"
- done
}
package_python-fabio() {
- depends=(
- "${_deppy[@]}"
- "${_depends[@]}"
- )
- optdepenends=(
- "${_optdepends[@]}"
- )
- cd "${srcdir}/py-${_pkgname}-${pkgver}"
+ cd "${srcdir}/${_pkgname}-${pkgver}"
python setup.py install --root="${pkgdir}/" --optimize=1
install -D copyright "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}