summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fc3f7df302b54b4ed982f6de01589698b9b7a8a8 (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
# Maintainer: Paul Irofti <paul@irofti.net>
_name=kymatio
pkgname="python-$_name"
pkgver=0.2.1
pkgrel=1
pkgdesc="Wavelet scattering in Python"

arch=('any')
url="https://www.kymat.io/"
license=('GPLv3')

depends=('python' 'python-numpy' 'python-scipy' 'python-appdirs'
  'python-configparser' 'python-packaging')
makedepends=('python-setuptools')

source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
sha256sums=('67b7f57c881f17c260aa7659261ea2975b2feec9a09b8c46327533c589e0953c')

prepare() {
  cd "$srcdir/$_name-$pkgver"
  sed -i s,requirements.txt,${_name}.egg-info\/requires.txt, setup.py
}

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

package() {
  cd "$srcdir/$_name-$pkgver"
  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}

# vim:set sw=2 et: