updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / gcue2tracks / PKGBUILD
blobfa15c336d38e4115697db96eb43542105355c46a
1 # Contributor: Artem Sereda <overmind88@gmail.com>                                                          
2 pkgname=gcue2tracks
3 pkgver=0.5.0
4 pkgrel=2
5 pkgdesc="Tool for spliting compressed audio CD image to tracks with filling tags from cue sheet info."
6 arch=(i686 x86_64)
7 url="http://trac-hg.assembla.com/gCue2tracks/wiki"    
8 license=('GPL')
9 depends=('pygtk' 'cuetools' 'shntool' 'ffmpeg' 'unzip')
10 optdepends=('id3v2: For MP3 tagging support')
11 makedepends=(gettext)
12 source=(http://trac-hg.assembla.com/gCue2tracks/attachment/wiki/Archive/$pkgname\_$pkgver.tar.gz?format=raw)
13 md5sums=('c8c84bd5a729e718fe50c8c31c24a67d')
15 build() {
17   cd "$startdir/src/gCue2tracks"
18   sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
19       -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
20       $(find . -name '*.py')
21   sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
22       -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" gcue2tracks
23   python2 setup.py install --root=${pkgdir}
24   chmod +x ${pkgdir}/usr/bin/gcue2tracks