python-pyacoustid: add python3 flavor
This commit is contained in:
parent
262bab7932
commit
85e1e79349
|
@ -1,16 +1,15 @@
|
||||||
# Template file for 'python-pyacoustid'
|
# Template file for 'python-pyacoustid'
|
||||||
pkgname=python-pyacoustid
|
pkgname=python-pyacoustid
|
||||||
version=1.1.4
|
version=1.1.4
|
||||||
revision=1
|
revision=2
|
||||||
noarch=yes
|
noarch=yes
|
||||||
wrksrc="pyacoustid-${version}"
|
wrksrc="pyacoustid-${version}"
|
||||||
build_style=python2-module
|
build_style=python-module
|
||||||
hostmakedepends="python-setuptools"
|
hostmakedepends="python-setuptools python3-setuptools"
|
||||||
makedepends="${hostmakedepends}"
|
depends="chromaprint python-audioread python-requests"
|
||||||
depends="python python-audioread python-requests chromaprint"
|
|
||||||
pycompile_module="acoustid.py chromaprint.py"
|
pycompile_module="acoustid.py chromaprint.py"
|
||||||
short_desc="Python bindings for Chromaprint and the Acoustid API"
|
short_desc="Python2 bindings for Chromaprint and the Acoustid API"
|
||||||
maintainer="Steven R <dev@styez.com>"
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||||
homepage="https://github.com/sampsyo/pyacoustid"
|
homepage="https://github.com/sampsyo/pyacoustid"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
distfiles="${PYPI_SITE}/p/pyacoustid/pyacoustid-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/p/pyacoustid/pyacoustid-${version}.tar.gz"
|
||||||
|
@ -20,3 +19,14 @@ post_install() {
|
||||||
sed -n '0,/^$/p' acoustid.py > LICENSE
|
sed -n '0,/^$/p' acoustid.py > LICENSE
|
||||||
vlicense 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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
python-pyacoustid
|
Loading…
Reference in New Issue