void-packages/srcpkgs/python-pyacoustid/template

33 lines
967 B
Bash

# Template file for 'python-pyacoustid'
pkgname=python-pyacoustid
version=1.1.4
revision=2
noarch=yes
wrksrc="pyacoustid-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="chromaprint python-audioread python-requests"
pycompile_module="acoustid.py chromaprint.py"
short_desc="Python2 bindings for Chromaprint and the Acoustid API"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="https://github.com/sampsyo/pyacoustid"
license="MIT"
distfiles="${PYPI_SITE}/p/pyacoustid/pyacoustid-${version}.tar.gz"
checksum=b54bc803e936e49170f01febcf89621dda4a1ebb3d407e04e9ead290fa3a6cf3
post_install() {
sed -n '0,/^$/p' acoustid.py > LICENSE
vlicense LICENSE
}
python3-pyacoustid_package() {
noarch=yes
pycompile_module="acoustid.py chromaprint.py"
depends="chromaprint python3-audioread python3-requests"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}