summaryrefslogtreecommitdiff
path: root/community/python2-tagpy
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-04-01 00:05:25 -0700
committerroot <root@rshg054.dnsready.net>2013-04-01 00:05:25 -0700
commitc623429f33c434cb1cb11974d9e71f48dd5a881f (patch)
treea5ef4b20d134eb0384a567b98ea41733f2db73c7 /community/python2-tagpy
parentbccd6b361bd252b2d32bc9a793c9e1b8448bfcd9 (diff)
Mon Apr 1 00:05:25 PDT 2013
Diffstat (limited to 'community/python2-tagpy')
-rw-r--r--community/python2-tagpy/PKGBUILD48
1 files changed, 27 insertions, 21 deletions
diff --git a/community/python2-tagpy/PKGBUILD b/community/python2-tagpy/PKGBUILD
index d113ff99f..ed927be72 100644
--- a/community/python2-tagpy/PKGBUILD
+++ b/community/python2-tagpy/PKGBUILD
@@ -1,14 +1,15 @@
-# $Id: PKGBUILD 83273 2013-01-28 16:50:06Z stephane $
+# $Id: PKGBUILD 87435 2013-03-31 19:18:49Z stephane $
+# Maintainer: Alexander Rødseth <rodseth@gmail.com>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Callan Barrett <wizzomafizzo@gmail.com>
# Contributor: Scott Horowitz <stonecrest@gmail.com>
pkgname=python2-tagpy
pkgver=0.94.8
-pkgrel=2
-pkgdesc="Python bindings for TagLib"
-arch=('i686' 'x86_64')
-url="http://pypi.python.org/pypi/tagpy"
+pkgrel=3
+pkgdesc='Python bindings for TagLib'
+arch=('x86_64' 'i686')
+url='http://pypi.python.org/pypi/tagpy'
license=('MIT')
depends=('python2' 'taglib' 'boost-libs')
makedepends=('python2-distribute' 'boost')
@@ -16,32 +17,37 @@ replaces=('tagpy')
conflicts=('tagpy')
source=("http://pypi.python.org/packages/source/t/tagpy/tagpy-$pkgver.tar.gz"
'taglib1.7.patch')
-md5sums=('6baff63318cf90b9bc5a2497a0597802'
- '5b47cefe5fad98a093232256779da345')
+sha256sums=('56eab8dd81510f8af18e19375a0ffd5cd25c8e555104be46a92c3dc08634a0dc'
+ 'f6cc34f8d4d1186270943cd7e1ad3c9478ae7064ab9b2cddf7760d493295cd26')
build() {
- cd tagpy-${pkgver}
+ cd "tagpy-$pkgver"
- patch -p1 -i "${srcdir}"/taglib1.7.patch
+ patch -p1 -i "$srcdir/taglib1.7.patch"
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
+ ./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 tagpy-${pkgver}
- python2 setup.py install --root="${pkgdir}" --optimize=1
- install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
-}
-
check(){
- cd tagpy-${pkgver}
+ cd "tagpy-$pkgver"
+
python2 setup.py test
}
+
+package(){
+ cd "tagpy-$pkgver"
+
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et: