diff options
author | Erich Eckner <git@eckner.net> | 2020-02-24 09:12:12 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-02-24 09:12:12 +0100 |
commit | 4ae84b3eba4085b1b66434d505d7149a0a8f9bbf (patch) | |
tree | 47b8d65c3266675d57e338e23520f573fafb0272 | |
parent | 4739beb20d848e3454003da1219c7c5ca5f7f8f7 (diff) | |
download | archlinuxewe-4ae84b3eba4085b1b66434d505d7149a0a8f9bbf.tar.xz |
python-pyfftw: 0.12.0-1 -> 0.12.0-2
-rw-r--r-- | python-pyfftw/PKGBUILD | 47 |
1 files changed, 9 insertions, 38 deletions
diff --git a/python-pyfftw/PKGBUILD b/python-pyfftw/PKGBUILD index cb1e3f4ac..937c5c423 100644 --- a/python-pyfftw/PKGBUILD +++ b/python-pyfftw/PKGBUILD @@ -2,62 +2,33 @@ # Contributor: Antony Lee <anntzer dot lee at gmail dot com> _pkgname=pyFFTW -pkgname=("python-pyfftw" "python2-pyfftw") -pkgbase="python-pyfftw" +pkgname='python-pyfftw' pkgver=0.12.0 -pkgrel=1 +pkgrel=2 pkgdesc='A pythonic wrapper around FFTW.' url='http://hgomersall.github.io/pyFFTW/' -_deppy2=( - 'python2>=2.7' - 'python2<2.8' -) -_deppy=( - 'python>=3.8' - 'python<3.9' -) -_depends=( +depends=( 'cython>=0.29' 'fftw' + 'python>=3.8' + 'python<3.9' 'python-numpy>=1.10' 'python-scipy>=0.16.0') -_makedepends=( - 'python-setuptools') makedepends=( - "${_deppy[@]}" - "${_deppy2[@]}" - "${_depends[@]}" - "${_depends[@]/python-/python2-}" - "${_makedepends[@]}" - "${_makedepends[@]/ython/ython2}" -) + '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 + cd "$srcdir/$_pkgname-$pkgver" python setup.py build_ext --inplace python setup.py test } -package_python-pyfftw() { - depends=( - "${_deppy[@]}" - "${_depends[@]}" - ) - cd $srcdir/$_pkgname-$pkgver +package() { + cd "$srcdir/$_pkgname-$pkgver" python setup.py install --root="$pkgdir" --optimize=1 install -D -m644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } - -package_python2-pyfftw() { - depends=( - "${_deppy2[@]}" - "${_depends[@]/python-/python2-}" - ) - cd $srcdir/$_pkgname-$pkgver - python2 setup.py install --root="$pkgdir" --optimize=1 - install -D -m644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -} |