summaryrefslogtreecommitdiff
path: root/community-staging/tagpy
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-07-09 00:02:00 +0000
committerroot <root@rshg054.dnsready.net>2012-07-09 00:02:00 +0000
commit6f492df5ae2ab0d2bd117d6f1c458d52e2e24585 (patch)
tree51e61122d46459be560a778ce76bdf527edf5334 /community-staging/tagpy
parenta522a5f63f3b5726081698bf742801fb1d242817 (diff)
Mon Jul 9 00:02:00 UTC 2012
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..95c398585
--- /dev/null
+++ b/community-staging/tagpy/PKGBUILD
@@ -0,0 +1,36 @@
+# $Id: PKGBUILD 73441 2012-07-07 18:57:56Z tdziedzic $
+# 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=8
+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"
+}