diff options
author | Erich Eckner <git@eckner.net> | 2017-10-05 10:59:07 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-10-05 10:59:07 +0200 |
commit | 18ab9c223b3b2387603bf307484b592ff2b931e6 (patch) | |
tree | b8b962675374c4cccc5c9ff33621f54cb4c6e6eb /python-pyfftw/PKGBUILD | |
parent | 15640cbff003492b0a5207c2276a31613fd63652 (diff) | |
download | archlinuxewe-18ab9c223b3b2387603bf307484b592ff2b931e6.tar.xz |
python-pyfftw neu
Diffstat (limited to 'python-pyfftw/PKGBUILD')
-rw-r--r-- | python-pyfftw/PKGBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/python-pyfftw/PKGBUILD b/python-pyfftw/PKGBUILD new file mode 100644 index 000000000..2aa46f1dc --- /dev/null +++ b/python-pyfftw/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Erich Eckner <arch at eckner dot net> +# Contributor: Antony Lee <anntzer dot lee at gmail dot com> + +_pyname=pyFFTW +pkgname=("python-pyfftw" "python2-pyfftw") +pkgbase="python-pyfftw" +pkgver=0.10.4 +pkgrel=1 +pkgdesc='A pythonic wrapper around FFTW.' +url='http://hgomersall.github.io/pyFFTW/' +depends=('fftw') +makedepends=('python-numpy' 'python2-numpy' 'python-scipy' 'python2-scipy') +license=('BSD') +arch=('i686' 'x86_64') +source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz") +sha512sums=('6848133e30a02ee51bb86613f53a5fdbf9b5a0fea3cab01b8ca7d365f924a966ac9b94f4ed62979d418f9f847369f8c50568ca855e472035fa37e86e630fb9fd') + +build() { + cd $srcdir/$_pyname-$pkgver + python setup.py build +} + +build() { + cd $srcdir/$_pyname-$pkgver + python setup.py build_ext --inplace + python setup.py test +} + +package_python-pyfftw() { + depends+=('python-numpy' 'python-scipy') + cd $srcdir/$_pyname-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +package_python2-pyfftw() { + depends+=('python2-numpy' 'python2-scipy') + cd $srcdir/$_pyname-$pkgver + python2 setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} |