void-packages/srcpkgs/python3-audioread/template

25 lines
731 B
Bash

# Template file for 'python3-audioread'
pkgname=python3-audioread
version=2.1.9
revision=2
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3"
short_desc="Multi-library, cross-platform audio decoding (Python3)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://github.com/sampsyo/audioread/"
distfiles="${PYPI_SITE}/a/audioread/audioread-${version}.tar.gz"
checksum=a3480e42056c8e80a8192a54f6729a280ef66d27782ee11cbd63e9d4d1523089
post_patch() {
# Build doesn't actually require pytest-runner and Void doesn't offer it
vsed -e '/pytest-runner/d' -i setup.py
}
post_install() {
sed -n '2,13p' decode.py > LICENSE
vlicense LICENSE
vdoc "${FILESDIR}/README.voidlinux"
}