# Contributor from Arch: Eric Belanger pkgbase=mutagen pkgname=('mutagen' 'python3-mutagen') pkgver=1.41.0 pkgrel=1 arch=('any') url="https://github.com/quodlibet/mutagen" license=('GPL2') makedepends=(python2-setuptools python3-setuptools) checkdepends=(python2-pytest python3-pytest python2-hypothesis python3-hypothesis python2-pyflakes python3-pyflakes python2-pycodestyle python3-pycodestyle) source=(https://github.com/quodlibet/mutagen/releases/download/release-${pkgver}/${pkgbase}-${pkgver}.tar.gz{,.sig}) validgpgkeys=(0EBF782C5D53F7E5FB02A66746BD761F7A49B0EC) sha1sums=('b80793da7b23742faf0616d0b301eff2e4a579d7' 'SKIP') prepare() { cp -aT $pkgbase-$pkgver python3-$pkgbase-$pkgver } package_mutagen() { pkgdesc="An audio metadata tag reader and writer" depends=('python2') cd $pkgbase-$pkgver python2 setup.py install --root="${pkgdir}" } package_python3-mutagen() { pkgdesc="An audio metadata tag reader and writer library for Python 3" depends=('python3') cd python3-$pkgbase-$pkgver python3 setup.py install --root="${pkgdir}" rm -r "${pkgdir}"/usr/{bin,share} }