void-packages/srcpkgs/python-audioread/template

33 lines
848 B
Bash

# Template file for 'python-audioread'
pkgname=python-audioread
version=2.1.6
revision=1
noarch=yes
wrksrc="audioread-${version}"
build_style=python-module
pycompile_module="audioread"
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
short_desc="Multi-library, cross-platform audio decoding (Python2)"
maintainer="Juan RP <xtraeme@voidlinux.org>"
homepage="https://github.com/sampsyo/audioread/"
license="MIT"
distfiles="${PYPI_SITE}/a/audioread/audioread-${version}.tar.gz"
checksum=b0b9270c20833a75ce0d167fb2fdad52ddcd8e8f300be8afad3ac9715850bc50
post_install() {
sed -n '2,13p' decode.py > LICENSE
vlicense LICENSE
}
python3-audioread_package() {
noarch=yes
depends="python3"
pycompile_module="audioread"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}