summaryrefslogtreecommitdiff
path: root/python-fisx/PKGBUILD
blob: 944d32f89e0bab86eadc47dc01e2dc6cb0e8e491 (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>
pkgname=python-fisx
_pkgname="${pkgname#*-}"
pkgver=1.2.1
pkgrel=3
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=13.1.1'
  'glibc>=2.31'
)
depends=(
  "${_pinned_dependencies[@]}"
  'python>=3.11'
  'python<3.12'
  '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
}