summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f0df18379b891ffade25232373cd727baa7b0ef4 (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
45
46
# Maintainer: Guillaume Horel <guillaume.horel@gmail.com>

pkgname='python-pynfft'
_pkgname='pyNFFT'
pkgver=1.4.2
_pkgver=1.3.2
pkgrel=2
pkgdesc="Python wrapper to the NFFT library."
arch=('x86_64')
url="https://github.com/pyNFFT/pyNFFT"
license=('GPL3')
checkdepends=('python-nose')
depends=(nfft python python-numpy)
makedepends=('cython')
source=("https://pypi.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$_pkgver.tar.gz"
    new-api.patch
    rewrite_hidden_symbols.patch
    cython3.patch
)
sha256sums=('ae41e720e569d0d99e3a44c82c36b35a49cfc9ecc23a1cd039fe9e2895aada2c'
            'd44f3144cd2ace01f021f67b724cd4036c37c9b1fbcf85521788875216666f0b'
            '65a1407fddbc1cab3c6415e6341f79f8d14aa816fd9438a521f38390879cf7fb'
            'e4856002b58c3b4e5853d1efda2759fb1d97dcb1e896dd923c1f520a4c3b3ad6')

prepare() {
  cd "${_pkgname}-${_pkgver}"
  patch -p1 < ../new-api.patch
  patch -p1 < ../rewrite_hidden_symbols.patch
  patch -p1 < ../cython3.patch
}

build(){
  cd "${_pkgname}-${_pkgver}"
  python setup.py build_ext --inplace
}

package(){
  cd "${_pkgname}-${_pkgver}"
  python setup.py build_ext install --root=$pkgdir
}

check(){
  cd "${_pkgname}-${_pkgver}"
  python setup.py test
}
# vim:ts=2:sw=2:et: