49 lines
1.5 KiB
Bash
49 lines
1.5 KiB
Bash
# Template file for 'mutagen'
|
|
pkgname=mutagen
|
|
version=1.43.0
|
|
revision=3
|
|
build_style=python-module
|
|
pycompile_module="mutagen"
|
|
hostmakedepends="python-devel python-setuptools python3-devel
|
|
python3-setuptools"
|
|
makedepends="$hostmakedepends"
|
|
depends="python"
|
|
short_desc="Python2 multimedia tagging library"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://github.com/quodlibet/mutagen"
|
|
changelog="https://raw.githubusercontent.com/quodlibet/mutagen/master/NEWS"
|
|
distfiles="${PYPI_SITE}/m/${pkgname}/${pkgname}-${version}.tar.gz"
|
|
checksum=3a982d39f1b800520a32afdebe3543f972e83a6ddd0c0198739a161ee705b588
|
|
|
|
alternatives="
|
|
mutagen:mid3cp:/usr/bin/mid3cp2
|
|
mutagen:mid3iconv:/usr/bin/mid3iconv2
|
|
mutagen:mid3v2:/usr/bin/python2-mid3v2
|
|
mutagen:moggsplit:/usr/bin/moggsplit2
|
|
mutagen:mutagen-inspect:/usr/bin/mutagen-inspect2
|
|
mutagen:mutagen-pony:/usr/bin/mutagen-pony2"
|
|
|
|
post_install() {
|
|
# XXX: override the default naming scheme for mid3v2
|
|
cp -a ${DESTDIR}/usr/bin/{,python3-}mid3v2
|
|
mv ${DESTDIR}/usr/bin/{,python2-}mid3v2
|
|
}
|
|
|
|
python3-mutagen_package() {
|
|
alternatives="
|
|
mutagen:mid3cp:/usr/bin/mid3cp3
|
|
mutagen:mid3iconv:/usr/bin/mid3iconv3
|
|
mutagen:mid3v2:/usr/bin/python3-mid3v2
|
|
mutagen:moggsplit:/usr/bin/moggsplit3
|
|
mutagen:mutagen-inspect:/usr/bin/mutagen-inspect3
|
|
mutagen:mutagen-pony:/usr/bin/mutagen-pony3"
|
|
depends="python3"
|
|
pycompile_module="mutagen"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/bin/*3
|
|
vmove usr/bin/python3-*
|
|
vmove usr/lib/python3*
|
|
}
|
|
}
|