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

pkgname=perl-cddb-file
pkgver=1.05
pkgrel=1gv
arch=i486
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-mp3-info (Manipulate / fetch info from MP3 audio files with Perl)"
"With this Perl module you can manipulate / fetch info from MP3 audio"
"files."
)


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
}