summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6ad3027d94ad09ba0ba6923c20c72bd1845005b0 (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
# Maintainer: Chris Arndt <aur -at- chrisarndt -dot- de>
# Contributor: Tim Langlois <trl54@cornell.edu>

_pkgname=wavefile
pkgname=python-$_pkgname
pkgver=1.6.2
pkgrel=2
arch=(any)
license=(GPL-3.0-or-later)
pkgdesc='Pythonic libsndfile wrapper to read and write audio files'
url='https://github.com/vokimon/python-wavefile'
makedepends=(python-build python-installer python-setuptools python-wheel)
depends=(python-numpy libsndfile)
checkdepends=(python-pytest)
source=("https://pypi.python.org/packages/source/w/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
sha256sums=('e5d890fef3045adc0b7121ce9d602e3386e42f674016e3d3e276077b7067ad12')

build() {
  cd $_pkgname-$pkgver
  python -m build --wheel --no-isolation
}

check() {
  cd $_pkgname-$pkgver
  pytest --override-ini="addopts="
}

package() {
  cd $_pkgname-$pkgver
  python -m installer --destdir="$pkgdir" dist/*.whl
  install -v -Dm 644 README.md -t "$pkgdir"/usr/share/doc/$pkgname
}