From 212e835aa50d7f08de33f934a7eeb4f24bae3aac Mon Sep 17 00:00:00 2001 From: Britney Fransen <brfransen@gmail.com> Date: Wed, 30 Apr 2014 19:48:00 +0000 Subject: mutagen: update to 1.22 --- abs/extra/mutagen/PKGBUILD | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 abs/extra/mutagen/PKGBUILD diff --git a/abs/extra/mutagen/PKGBUILD b/abs/extra/mutagen/PKGBUILD new file mode 100644 index 0000000..7c6d05a --- /dev/null +++ b/abs/extra/mutagen/PKGBUILD @@ -0,0 +1,28 @@ +# $Id$ +# Maintainer: Eric BĂ©langer <eric@archlinux.org> + +pkgname=mutagen +pkgver=1.22 +pkgrel=1 +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=('4338be32a7fcdbc9063ce58277c144a143a856be' + 'SKIP') + +check() { + cd "${srcdir}/${pkgname}-${pkgver}" + LANG=en_US.UTF8 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" +} -- cgit v0.12