summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--abs/extra/mutagen/PKGBUILD28
1 files changed, 28 insertions, 0 deletions
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"
+}