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

pkgname=perl-cddb-file
pkgver=1.05
pkgrel=4gv
source=(http://search.cpan.org/CPAN/authors/id/T/TM/TMTM/CDDB-File-$pkgver.tar.gz)
docs=("readme" "install" "copying" "changelog*" "authors" "news" "todo" "license" "maintainers" "copyright.pod")

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"perl-cddb-file (Parse a CDDB/freedb data file)"
"This module provides an interface for extracting data from CDDB-format"
"data files, as used by freedb. It does not read data from your CD, or"
"submit information to freedb."
)


build() {
	cd $startdir/src/CDDB-File-$pkgver

	perl Makefile.PL || exit 1
	make OPTIMIZE="$CFLAGS" || exit 1
	make install INSTALLDIRS=vendor DESTDIR=$startdir/pkg || exit 1

	# Remove perllocal.pod and .packlist if present in the package
	( for i in perllocal.pod .packlist; do
	        find $startdir/pkg -name "$i" -exec rm -rf {} \;
		  done
	) || exit 1
}