summaryrefslogtreecommitdiff
path: root/python-pywavelets/PKGBUILD
blob: c662d29c6d8394355880c5b1b907c5394c8935d7 (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
# Maintainer: Erich Eckner <arch at eckner dot net>
# Contributor: Francois Boulogne <fboulogne at april dot org>
# Contributor: Jingbei Li <i@jingbei.li>
pkgname=python-pywavelets
_pkgname=pywt
pkgver=1.1.1
pkgrel=4
pkgdesc="Discrete Wavelet Transforms in Python"
arch=('x86_64' 'i686' 'pentium4')
url="https://github.com/PyWavelets/pywt"
license=('MIT')
_pinned_dependencies=(
  'glibc>=2.31'
)
depends=(
  "${_pinned_dependencies[@]}"
  'python>=3.8'
  'python<3.9'
  'cython'
  'python-matplotlib'
  'python-nose'
  'python-numpy'
  'python-wheel')
makedepends=(
  'cython>=0.20.2'
  'python-setuptools')
source=("$_pkgname-$pkgver.tar.gz::https://github.com/PyWavelets/pywt/archive/v$pkgver.tar.gz")
sha512sums=('b1abb0d95ba508ecdd7f1bde4b12e4bebe7709db7e76a6a7058ebfba470efa173db6362113f5653479096f9b2a4df704c94b844a785c273e89be5a9adc44f368')

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

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

# vim:ts=2:sw=2:et: