summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-10-20 13:31:47 +0200
committerErich Eckner <git@eckner.net>2019-10-20 13:31:47 +0200
commit32c8cd40d1937fff268facb82d85783ab0b3b054 (patch)
tree810432a7985a71277971e651551709b3ab900fcd
parent7a6d6377e76dcc67fc124fbed90519a8990b99da (diff)
downloadarchlinuxewe.git.save-32c8cd40d1937fff268facb82d85783ab0b3b054.tar.xz
python-pywavelets: 1.0.3-1 -> 1.1.1-1
-rw-r--r--python-pywavelets/PKGBUILD57
1 files changed, 6 insertions, 51 deletions
diff --git a/python-pywavelets/PKGBUILD b/python-pywavelets/PKGBUILD
index 233621d3..48cdaf05 100644
--- a/python-pywavelets/PKGBUILD
+++ b/python-pywavelets/PKGBUILD
@@ -1,79 +1,34 @@
# Maintainer: Erich Eckner <arch at eckner dot net>
# Contributor: Francois Boulogne <fboulogne at april dot org>
# Contributor: Jingbei Li <i@jingbei.li>
-pkgbase=python-pywavelets
-pkgname=(python-pywavelets python2-pywavelets)
+pkgname=python-pywavelets
_pkgname=pywt
-pkgver=1.0.3
+pkgver=1.1.1
pkgrel=1
pkgdesc="Discrete Wavelet Transforms in Python"
arch=('x86_64' 'i686' 'pentium4')
url="https://github.com/PyWavelets/pywt"
license=('MIT')
-_deppy2=(
- 'python2>=2.7'
- 'python2<2.8'
-)
-_deppy=(
+depends=(
'python>=3.7'
'python<3.8'
-)
-_depends=(
'cython'
'python-matplotlib'
'python-nose'
'python-numpy'
'python-wheel')
-_makedepends=(
+makedepends=(
'cython>=0.20.2'
'python-setuptools')
source=("$_pkgname-$pkgver.tar.gz::https://github.com/PyWavelets/pywt/archive/v$pkgver.tar.gz")
-sha512sums=('130dc962c22bcd66c2de9b018ff6324cc5c8016acfafbddc22091b94f3cd8666e5d401f2ee3014730ce4b9969d196ae5f82aad5de0b9578b837ef1672abb4d5e')
-
-makedepends=(
- "${_deppy[@]}"
- "${_deppy2[@]}"
- "${_makedepends[@]}"
- "${_makedepends[@]/ython/ython2}"
- "${_depends[@]}"
- "${_depends[@]/python/python2}"
-)
-
-prepare() {
- cd "$srcdir/"
- cp -a "${_pkgname}-${pkgver}" "${_pkgname}-${pkgver}-py2"
- cd "${_pkgname}-${pkgver}-py2"
- sed -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
- -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
- -e "s|#![ ]*/bin/env python$|#!/usr/bin/env python2|" \
- -i $(find . -name '*.py')
-}
+sha512sums=('b1abb0d95ba508ecdd7f1bde4b12e4bebe7709db7e76a6a7058ebfba470efa173db6362113f5653479096f9b2a4df704c94b844a785c273e89be5a9adc44f368')
build() {
- echo "Building Python 2"
- cd "$srcdir/${_pkgname}-${pkgver}-py2"
- python2 setup.py build
-
- echo "Building Python 3"
cd "$srcdir/$_pkgname-$pkgver"
python setup.py build
}
-package_python2-pywavelets(){
- depends=(
- "${_deppy2[@]}"
- "${_depends[@]/python/python2}"
- )
- cd "$srcdir/$_pkgname-$pkgver-py2"
- python2 setup.py install --root="$pkgdir/" --optimize=1
- install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}
-
-package_python-pywavelets(){
- depends=(
- "${_deppy[@]}"
- "${_depends[@]}"
- )
+package(){
cd "$srcdir/$_pkgname-$pkgver"
python setup.py install --root="$pkgdir/" --optimize=1
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"