summaryrefslogtreecommitdiff
path: root/python-pyfftw/PKGBUILD
blob: 26dcf27a67b0337a18b97572d30e0336edd5727d (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
39
40
41
42
43
44
# Maintainer: Erich Eckner <arch at eckner dot net>
# Contributor: Antony Lee <anntzer dot lee at gmail dot com>

_pkgname=pyFFTW
pkgname='python-pyfftw'
pkgver=0.12.0
pkgrel=15
pkgdesc='A pythonic wrapper around FFTW.'
url='http://hgomersall.github.io/pyFFTW/'
_pinned_dependencies=(
  'glibc>=2.31'
  'libfftw3f_omp.so=3'
  'libfftw3f.so=3'
  'libfftw3l_omp.so=3'
  'libfftw3l.so=3'
  'libfftw3_omp.so=3'
  'libfftw3.so=3'
)
depends=(
  "${_pinned_dependencies[@]}"
  'cython>=0.29'
  'fftw'
  'python>=3.9'
  'python<3.10'
  'python-numpy>=1.10'
  'python-scipy>=0.16.0')
makedepends=(
  'python-setuptools')
license=('BSD')
arch=('i686' 'pentium4' 'x86_64')
source=("https://pypi.python.org/packages/4b/38/6f9539d274d02fbc3262e2f9a0c9dbac9b53393b3ed935612993f8df54bf/${_pkgname}-${pkgver}.tar.gz")
sha512sums=('0b4199d0e23f72942b9cedc2d6f7cf990db2f610407fd05c0576146fea63df9d1a36bb88dcf834a9801646bddb45162e942bfbd72e3c25351432b915a5bc8bb4')

build() {
  cd "$srcdir/$_pkgname-$pkgver"
  python setup.py build_ext --inplace
  python setup.py test
}

package() {
  cd "$srcdir/$_pkgname-$pkgver"
  python setup.py install --root="$pkgdir" --optimize=1 
  install -D -m644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}