summaryrefslogtreecommitdiffstats
path: root/abs/extra
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-08-15 15:42:22 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-08-15 15:42:22 (GMT)
commit9798db5585024e1194aa827e218f06fbd9461d01 (patch)
tree55db06c6fdee5ad8b977a37ba0bd7ec85e706b02 /abs/extra
parent63cd6b6bf8541516ed0539bcb3a95c6454b69a3d (diff)
downloadlinhes_pkgbuild-9798db5585024e1194aa827e218f06fbd9461d01.zip
linhes_pkgbuild-9798db5585024e1194aa827e218f06fbd9461d01.tar.gz
linhes_pkgbuild-9798db5585024e1194aa827e218f06fbd9461d01.tar.bz2
mutagen: 1.20
-new
Diffstat (limited to 'abs/extra')
-rw-r--r--abs/extra/community/mutagen/PKGBUILD28
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"
+}