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

pkgname=perl-ogg-vorbis-header-pureperl
pkgver=1.0
pkgrel=1gv
arch=i486
source=(http://search.cpan.org/CPAN/authors/id/D/DA/DANIEL/Ogg-Vorbis-Header-PurePerl-$pkgver.tar.gz)
docs=("readme" "install" "copying" "changelog*" "authors" "news" "todo" "license" "maintainers" "copyright.pod")

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"perl-ogg-vorbis-header-pureperl (An interface to Ogg Vorbis comments)"
"Ogg::Vorbis::Header::PurePerl - An object-oriented interface to Ogg"
"Vorbis information and comment fields, implemented entirely in Perl."
"Intended to be a drop in replacement for Ogg::Vobis::Header. Unlike"
"Ogg::Vorbis::Header, this module will go ahead and fill in all of the"
"information fields as soon as you construct the object. In other"
"words, the new and load constructors have identical behavior."
)


build() {
	cd $startdir/src/Ogg-Vorbis-Header-PurePerl-$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
}