diff options
-rw-r--r-- | abs/extra/community/mutagen/PKGBUILD | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/abs/extra/community/mutagen/PKGBUILD b/abs/extra/community/mutagen/PKGBUILD new file mode 100644 index 0000000..5e3d7b0 --- /dev/null +++ b/abs/extra/community/mutagen/PKGBUILD @@ -0,0 +1,28 @@ +# $Id: PKGBUILD 149368 2012-02-07 08:50:20Z eric $ +# Maintainer: Eric BĂ©langer <eric@archlinux.org> + +pkgname=mutagen +pkgver=1.20 +pkgrel=4 +pkgdesc="An audio metadata tag reader and writer" +arch=('any') +url="http://code.google.com/p/mutagen/" +license=('GPL2') +depends=('python2') +source=(http://mutagen.googlecode.com/files/${pkgname}-${pkgver}.tar.gz{,.sig}) +sha1sums=('7a8c1918160e6b5d24acd146f57c08ed942a2fa8' + '046c2d763cd59f86ee920a6dc28a32f86b555473') + +check() { + cd "${srcdir}/${pkgname}-${pkgver}" + python2 setup.py test +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + python2 setup.py install --root="${pkgdir}" + install -d "${pkgdir}/usr/bin" + install -m755 tools/* "${pkgdir}/usr/bin" + sed -i 's|^#!.*/usr/bin/env.*python|#!/usr/bin/env python2|' "${pkgdir}"/usr/bin/* \ + "${pkgdir}/usr/lib/python2.7/site-packages/mutagen/__init__.py" +} |