#Maintainer: Thorsten Muehlfelder <thenktor@gmx.de>

pkgname=libmusicbrainz
pkgver=3.0.3
pkgrel=1tm
source=("ftp://ftp.musicbrainz.org/pub/musicbrainz/libmusicbrainz-$pkgver.tar.gz")
url="http://musicbrainz.org/doc/libmusicbrainz"
docs=(AUTHORS.txt COPYING.txt INSTALL.txt NEWS.txt README.txt)

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"$pkgname (library for accessing MusicBrainz servers)"
"MusicBrainz is a user-maintained community music metadatabase."
"The MusicBrainz client library allows applications to make metadata"
"lookups to a MusicBrainz server, generate signatures from WAV files"
"and create CD Index Disk IDs from audio CD-ROMs."
)

build() {
	cd $startdir/src/${pkgname}-${pkgver}
	cmake -DCMAKE_INSTALL_PREFIX=/usr -DLIB_INSTALL_DIR=/usr/lib${LIBDIRSUFFIX} -DLIB_SUFFIX="${LIBDIRSUFFIX}" .
	make -j $numjobs || return 1
	make DESTDIR=$startdir/pkg/ install || return 1
}