summaryrefslogtreecommitdiffstats
path: root/abs
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2014-04-30 19:48:00 (GMT)
committerBritney Fransen <brfransen@gmail.com>2014-04-30 19:48:00 (GMT)
commit212e835aa50d7f08de33f934a7eeb4f24bae3aac (patch)
tree76c4680e487a5762b307ac53ada0de4ba3db30f6 /abs
parenta7ebe990abce89bf5d66879890737d2bb8a8e11f (diff)
downloadlinhes_pkgbuild-212e835aa50d7f08de33f934a7eeb4f24bae3aac.zip
linhes_pkgbuild-212e835aa50d7f08de33f934a7eeb4f24bae3aac.tar.gz
linhes_pkgbuild-212e835aa50d7f08de33f934a7eeb4f24bae3aac.tar.bz2
mutagen: update to 1.22
Diffstat (limited to 'abs')
-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"
+}