summaryrefslogtreecommitdiff
path: root/community/pyid3lib/PKGBUILD
blob: c0a541b664b408b6312d03e7021c6397b40428ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# $Id: PKGBUILD 66183 2012-02-23 02:32:37Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Hugo Ideler <hugoideler@dse.nl>
# Maintainer: Jens Persson <xerxes2 at gmail.com>

pkgname=pyid3lib
pkgver=0.5.1
pkgrel=7
pkgdesc="A Python module for editing ID3v2 tags of MP3 audio files"
arch=('i686' 'x86_64')
url="http://pyid3lib.sourceforge.net/"
license=('LGPL')
depends=('python2' 'glibc' 'id3lib')
source=(http://downloads.sourceforge.net/sourceforge/pyid3lib/$pkgname-$pkgver.tar.gz
	pyid3lib-0.5.1-py25.patch)
md5sums=('5fd37a7dda7c540f665ca5d428a28f5e'
         '377b797acfae7411c3a70c244d3cf9b6')

build() {
  cd $srcdir/$pkgname-$pkgver
  [ "${CARCH}" = "x86_64" ] && patch -p1 < ../pyid3lib-0.5.1-py25.patch
  sed -i "s#strchr( str, '/' )#strchr( (char*)str, '/' )#" pyid3lib.cc
  python2 setup.py install --root=$pkgdir
}