# Compiling Time: 0.01 SBU
# Maintainer: James Buren <ryuo@frugalware.org>

pkgname=wavegain
pkgver=1.3.1
pkgrel=4
pkgdesc="an audio file normalizer using ReplayGain algorithms"
url="http://www.rarewares.org/others.php"
depends=('glibc>=2.29-6')
groups=('multimedia-extra')
archs=('x86_64')
up2date="Flastarchive $url srcs.zip"
source=(http://www.rarewares.org/files/others/${pkgname}-${pkgver}srcs.zip
  format-security.patch implicit-function-declaration.patch)
sha1sums=('bee21ca3022a72f9b27ab6fee6294d950f3c86ca' \
          '1d468cb40dcc622adc3b8d4cf992c35613e74ade' \
          '11f9fdfa9a3545ef0b64e078ed2ea94b40022272')

build()
{
	Fcd WaveGain-$pkgver
	Fpatchall
	local i
	for i in *.c; do
		cc $CFLAGS -DHAVE_CONFIG_H -c $i -o ${i/.c/.o} || Fdie
	done
	cc *.o -lm -o wavegain || Fdie
	Fexerel /usr/bin/wavegain
}

# optimization OK
