updated on Sat Jan 21 04:00:54 UTC 2012
[aur-mirror.git] / flacon / PKGBUILD
blob3d712edc767cc3fbeb672f4de61737eb6fd84da0
1 # Contributor: Artem Sereda <overmind88@gmail.com>
2 pkgname=flacon
3 pkgver=0.6.0
4 pkgrel=1
5 pkgdesc="Extracts individual tracks from one big audio file containing the \
6  entire album of music and saves them as separate audio files."
7 arch=('i686' 'x86_64')
8 url="http://code.google.com/p/flacon/"
9 license=('GPL')
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)
21 build() {
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')