void-packages/srcpkgs/python-audioread/template
Juan RP 32ea5a5ac0 python-audioread: nocross=yes.
Remove this if someday gst1-python can be cross compiled.
2017-01-11 19:48:10 +01:00

33 lines
869 B
Bash

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