# Maintainer: Erich Eckner pkgname=python-fisx _pkgname="${pkgname#*-}" pkgver=1.2.1 pkgrel=5 pkgdesc='Enhanced C++ port of the Physics routines used by PyMca' arch=('i686' 'pentium4' 'x86_64') url='https://github.com/vasole/fisx' license=('MIT License') _pinned_dependencies=( 'gcc-libs=12.2.1' 'glibc>=2.31' ) depends=( "${_pinned_dependencies[@]}" 'python>=3.10' 'python<3.11' 'python-numpy') makedepends=( 'cython>=0.17' 'python-setuptools') source=( "${_pkgname}-v${pkgver}.tar.gz::https://github.com/vasole/${_pkgname}/archive/v${pkgver}.tar.gz" ) sha512sums=('189fc9b8f7ecde0c60212d967f10acd320eaf33218cdb99ed3a446cbde33fc93a87b93d1b2a80d53a5eae338900ccaa21d31905b2ab9deed8fcb1fc12b56ca89') build() { cd "${_pkgname}-${pkgver}" python setup.py build } package() { cd "${_pkgname}-${pkgver}" python setup.py install --skip-build --root="${pkgdir}" --prefix=/usr }