summaryrefslogtreecommitdiff
path: root/community-staging/tagpy
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-05-25 22:48:05 +0000
committerroot <root@rshg047.dnsready.net>2011-05-25 22:48:05 +0000
commit6e35be4b44d90f92ddceb8b067cbbf03fc652a35 (patch)
tree5a27309f3fe126e49f5a2f08f08b2526bc8d4dc2 /community-staging/tagpy
parent363d953113a327863013a9422c8212654a86a209 (diff)
Wed May 25 22:48:05 UTC 2011
Diffstat (limited to 'community-staging/tagpy')
-rw-r--r--community-staging/tagpy/PKGBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/community-staging/tagpy/PKGBUILD b/community-staging/tagpy/PKGBUILD
new file mode 100644
index 000000000..246a92e12
--- /dev/null
+++ b/community-staging/tagpy/PKGBUILD
@@ -0,0 +1,36 @@
+# $Id: PKGBUILD 47614 2011-05-24 13:24:59Z jelle $
+# Maintainer: Andrea Scarpino <andrea@archlinux.org>
+# Contributor: Callan Barrett <wizzomafizzo@gmail.com>
+# Contributor: Scott Horowitz <stonecrest@gmail.com>
+
+pkgname=tagpy
+pkgver=0.94.8
+pkgrel=4
+pkgdesc="Python bindings for TagLib"
+arch=('i686' 'x86_64')
+url="http://pypi.python.org/pypi/tagpy"
+license=('MIT')
+depends=('python2' 'taglib' 'boost-libs')
+makedepends=('python2-distribute' 'boost')
+source=("http://pypi.python.org/packages/source/t/$pkgname/$pkgname-$pkgver.tar.gz")
+md5sums=('6baff63318cf90b9bc5a2497a0597802')
+
+build() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+
+ sed -i -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
+ $(find . -name '*.py')
+
+ ./configure.py --taglib-lib-dir=/usr/lib/ \
+ --taglib-inc-dir=/usr/include/taglib/ \
+ --boost-inc-dir=/usr/include/boost/ \
+ --boost-lib-dir=/usr/lib/ \
+ --boost-python-libname=boost_python
+ python2 setup.py build
+}
+
+package(){
+ cd ${srcdir}/${pkgname}-${pkgver}
+ python2 setup.py install --root="${pkgdir}" --optimize=1
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
+}