Last active
December 16, 2015 12:49
-
-
Save cwill747/5437558 to your computer and use it in GitHub Desktop.
aacgain-cvs arch linux pkgbuild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Chase <sky[no_spam]<AT>[no_spam]skystrife<DOT>com> | |
arch=('i686' 'x86_64') | |
pkgname=aacgain-cvs | |
pkgver=20101003 | |
pkgrel=1 | |
conflicts=('aacgain') | |
provides=('aacgain') | |
makedepends=('cvs') | |
pkgdesc="Adjusts the volume of music files (mp4/m4a/QT/mp3) using ReplayGain | |
algorithm." | |
url="http://altosdesign.com/aacgain" | |
license=('GPL') | |
source=(http://mp4v2.googlecode.com/files/mp4v2-1.9.1.tar.bz2 | |
http://downloads.sourceforge.net/sourceforge/faac/faad2-2.7.tar.bz2) | |
install= | |
build() { | |
cd $srcdir | |
msg "Connecting to cvs server for mp3gain..." | |
if [[ -d mp3gain ]]; then | |
cd mp3gain | |
cvs -z3 update -d | |
else | |
cvs -z3 -d:pserver:anonymous@mp3gain.cvs.sourceforge.net:/cvsroot/mp3gain co -P mp3gain | |
fi | |
cd $srcdir | |
msg "Connecting to cvs server for aacgain..." | |
if [[ -d aacgain ]]; then | |
cd aacgain | |
cvs -z3 update -d | |
else | |
cvs -z3 -d:pserver:anonymous:@mp3gain.cvs.sourceforge.net:/cvsroot/mp3gain co -P aacgain | |
fi | |
msg "Done checking out..." | |
msg "Starting builds..." | |
cd $srcdir | |
rm -rf mp4v2 faad2 | |
mv mp4v2-1.9.1 mp4v2 | |
mv faad2-2.7 faad2 | |
cd aacgain | |
msg "Building mp4v2..." | |
patch -p0 <mp4v2.patch | |
cd ../mp4v2 | |
./configure | |
make libmp4v2.la | |
msg "Building faad2..." | |
cd ../faad2 | |
./configure | |
cd libfaad | |
make | |
msg "Building aacgain..." | |
cd ../../aacgain/linux | |
chmod +x prepare.sh | |
./prepare.sh | |
rm -rf build | |
mkdir build | |
cd build | |
../../../configure --prefix=/usr | |
make || return 1 | |
make prefix="$pkgdir/usr" install aacgain || return 1 | |
} | |
md5sums=('986701929ef15b03155ac4fb16444797' | |
'4c332fa23febc0e4648064685a3d4332') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment