#Maintainer: Thorsten Muehlfelder <thenktor(at)gmx.de>

pkgname=mp3_check
pkgver=1.98
pkgrel=2tm
source=("http://mesh.dl.sourceforge.net/sourceforge/mp3check/$pkgname-$pkgver.tar.gz" "datatype.patch")
docs=('README' 'NOTES' 'GOALS' 'COPYING')
url="http://freshmeat.net/projects/mp3_check/"

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"$pkgname - Checks MP3 files for errors"
"mp3_check helps to identify in explicit detail MP3s that do not"
"correctly follow the MP3 format. It also looks for invalid frame"
"headers, missing frames, etc., and generates useful statistics. This"
"can be especially important when building an archive, and you want"
"high quality MP3s."
)

build() {
	cd $startdir/src/${pkgname}-$pkgver
	sed -i 's#^LOCALBASE\ ?=\ /usr/local$#LOCALBASE\ ?=\ /usr#' Makefile
	sed -i 's#mp3_check ${LOCALBASE}/bin#mp3_check ${DESTDIR}${LOCALBASE}/bin/#' Makefile
	patch -p0 < ../datatype.patch
	make -j $numjobs || return 1
	mkdir -p ${startdir}/pkg/usr/bin/
	make DESTDIR=$startdir/pkg install
}