1 # Contributor: Artem Sereda <overmind88@gmail.com>
5 pkgdesc="Tool for spliting compressed audio CD image to tracks with filling tags from cue sheet info."
7 url="http://trac-hg.assembla.com/gCue2tracks/wiki"
9 depends=('pygtk' 'cuetools' 'shntool' 'ffmpeg' 'unzip')
10 optdepends=('id3v2: For MP3 tagging support')
12 source=(http://trac-hg.assembla.com/gCue2tracks/attachment/wiki/Archive/$pkgname\_$pkgver.tar.gz?format=raw)
13 md5sums=('c8c84bd5a729e718fe50c8c31c24a67d')
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