#Packager: George Vlahavas pkgname=perl-File-MimeInfo pkgver=0.21 pkgrel=1tjb source=(http://search.cpan.org/CPAN/authors/id/M/MI/MICHIELB/File-MimeInfo-0.21.tar.gz) sourcetemplate=http://people.salixos.org/mimosa/packages/$pkgname/$pkgver/ docs=("readme" "manifest" "changes") url=http://search.cpan.org/~michielb/File-MimeInfo-0.21/ slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "perl-File-MimeInfo (Determine file type with Perl)" "This module can be used to determine the mime type of a file. It tries" "to implement the freedesktop specification for a shared MIME database." ) build() { cd $startdir/src/File-MimeInfo-$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 }