#Maintainer: George Vlahavas <vlahavas~at~gmail~dot~com>

pkgname=mp3gain
pkgver=1.5.2
pkgrel=1gv
source=("http://prdownloads.sourceforge.net/mp3gain/1.5.2/mp3gain-1_5_2-src.zip" "build_fix.patch")
docs=("lgpl.txt")
url=http://mp3gain.sourceforge.net

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"mp3gain (analyzes and adjusts mp3s so that they have the same volume)"
"MP3Gain does not just do peak normalization, as many normalizers do."
"Instead, it does some statistical analysis to determine how loud the"
"file actually sounds to the human ear. Also, the changes MP3Gain makes"
"are completely lossless. There is no quality lost in the change"
"because the program adjusts the mp3 file directly, without decoding"
"and re-encoding."
)


build() {
	cd $startdir/src/
	
	patch -p0 Makefile < $startdir/src/build_fix.patch || exit 1

	sed -i -e "s/CFLAGS= -Wall -O3/CFLAGS= $CFLAGS -Wall/" Makefile
	make
	mkdir -p $startdir/pkg/usr/bin
	make install INSTALL_PATH=$startdir/pkg/usr/bin
}