updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / aacgain-cvs / PKGBUILD
blobf452af994aac266a5d2cef97411d02577c17b924
1 # Maintainer:   Chase <sky[no_spam]<AT>[no_spam]skystrife<DOT>com>
3 arch=('i686' 'x86_64')
4 pkgname=aacgain-cvs
5 pkgver=20101003
6 pkgrel=1
7 conflicts=('aacgain')
8 provides=('aacgain')
9 makedepends=('cvs')
10 pkgdesc="Adjusts the volume of music files (mp4/m4a/QT/mp3) using ReplayGain
11 algorithm."
12 url="http://altosdesign.com/aacgain"
13 license=('GPL')
14 source=(http://mp4v2.googlecode.com/files/mp4v2-1.9.1.tar.bz2
15         http://downloads.sourceforge.net/sourceforge/faac/faad2-2.7.tar.bz2)
16 install=
18 build() {
19     cd $srcdir
20     msg "Connecting to cvs server for mp3gain..."
21     if [[ -d mp3gain ]]; then
22         cd mp3gain
23         cvs -z3 update -d
24     else
25         cvs -z3 -d:pserver:anonymous@mp3gain.cvs.sourceforge.net:/cvsroot/mp3gain co -P mp3gain
26     fi
27     cd $srcdir
28     msg "Connecting to cvs server for aacgain..."
29     if [[ -d aacgain ]]; then
30         cd aacgain
31         cvs -z3 update -d
32     else
33         cvs -z3 -d:pserver:anonymous@mp3gain.cvs.sourceforge.net:/cvsroot/mp3gain co -P aacgain
34     fi
36     msg "Done checking out..."
37     msg "Starting builds..."
38     cd $srcdir
39     rm -rf mp4v2 faad2
40     mv mp4v2-1.9.1 mp4v2
41     mv faad2-2.7 faad2
42     cd aacgain
44     msg "Building mp4v2..."
45     patch -p0 <mp4v2.patch
46     cd ../mp4v2
47     ./configure
48     make libmp4v2.la
50     msg "Building faad2..."
51     cd ../faad2
52     ./configure
53     cd libfaad
54     make
56     msg "Building aacgain..."
57     cd ../../aacgain/linux
58     chmod +x prepare.sh
59     ./prepare.sh
60     rm -rf build
61     mkdir build
62     cd build
63     ../../../configure --prefix=/usr
64     make || return 1
65     make prefix="$pkgdir/usr" install aacgain || return 1
67 md5sums=('986701929ef15b03155ac4fb16444797'
68          '4c332fa23febc0e4648064685a3d4332')