summaryrefslogtreecommitdiff
path: root/python-fisx/PKGBUILD
blob: 497763b5f695bde9e8bd734f533a17d9305436a0 (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
# Maintainer: Erich Eckner <arch at eckner dot net>
pkgname=python-fisx
_pkgname="${pkgname#*-}"
pkgver=1.2.0
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=11.1.0'
  'glibc>=2.31'
)
makedepends=(
  'cython>=0.17'
  'python-numpy'
  'python-setuptools')
depends=(
  "${_pinned_dependencies[@]}"
  'python>=3.9'
  'python<3.10'
  'python-numpy')
source=(
    "${_pkgname}-v${pkgver}.tar.gz::https://github.com/vasole/${_pkgname}/archive/v${pkgver}.tar.gz"
)
sha512sums=('f063437fe55cd78d06dd13df5083cf91199c18c4e3b3cf307e8ca6da07fe18a0c7753e741538d838da90932ca6c7f7977a048c4f153795777e954a336f8cce41')

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

package() {
  cd "${_pkgname}-${pkgver}"
  python setup.py install --skip-build --root="${pkgdir}" --prefix=/usr
}