1 # Contributor: Artem Sereda <overmind88@gmail.com>
5 pkgdesc="Extracts individual tracks from one big audio file containing the \
6 entire album of music and saves them as separate audio files."
8 url="http://code.google.com/p/flacon/"
10 depends=('python2' 'python2-qt' 'flac' 'shntool' 'hicolor-icon-theme')
11 optdepends=('vorbis-tools: For OGG support'
12 'mac: For APE support'
13 'wavpack: For WavPack support'
14 'ttaenc: For TrueAudio support'
15 'lame: For MP3 support'
16 'mp3gain: For MP3 Replay Gain support'
17 'vorbisgain: For OGG Replay Gain support')
19 source=(http://flacon.googlecode.com/files/$pkgname-$pkgver.tgz)
22 export PYTHON=`which python2`
23 cd "$srcdir/$pkgname-$pkgver"
24 sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
25 -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
26 $(find . -name '*.py')
27 cd "$srcdir/$pkgname-$pkgver"
28 sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
29 -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" misc/flacon
30 sed -i s/python/python2/ Makefile
31 make DESTDIR=${pkgdir} install
34 md5sums=('2eb2edd55939e9110121918ab05652e3')