blob: 5c6570089661f19960108b4626243b6c820f8e12 (
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
37
38
|
# Maintainer: Christian Holme (Nordwin) <hcmh [at] mailbox [dot] org>
_base=astra-toolbox
pkgname=python-${_base}
pkgver=2.2.0
pkgrel=1
pkgdesc="MATLAB and Python toolbox of high-performance GPU primitives for 2D and 3D tomography"
arch=(x86_64)
url="https://github.com/astra-toolbox/astra-toolbox"
license=(GPL3)
depends=(python-numpy python-scipy python-six boost 'python>=3.12')
makedepends=(python-setuptools cython)
source=(https://github.com/astra-toolbox/astra-toolbox/archive/refs/tags/v${pkgver}.tar.gz
fix-astra-cython-check.patch)
sha512sums=('5bbb1a26663da5ba3d7c9f1d3dd9772739c38f78c5dab840140ea5a68d6b367113d3b62602948790632b5d841c00f3511dd45144cc3941d3d29578ac944fe7b2'
'0211195cf67749eec2d0ceefd666cf2ef9bdc517d96e2130f06ac14695f083698f5ca8284ce8151472e49f513df78d4657e437dd639f8f87d78a27d5ee7d7c64')
prepare() {
cd ${_base}-${pkgver}
# astra has an incorrect check for cython, see https://github.com/astra-toolbox/astra-toolbox/commit/73388ddfcdd72788196603f531fe0d0f1e717590
patch -p1 -i ../fix-astra-cython-check.patch
}
build() {
cd ${_base}-${pkgver}
cd build/linux
./autogen.sh
./configure --with-python \
--prefix=/usr \
--with-install-type=module
make
}
package() {
cd ${_base}-${pkgver}
cd build/linux
make DESTDIR=${pkgdir} install
}
|