#Packager: George Vlahavas pkgname=perl-File-DesktopEntry pkgver=0.04 pkgrel=2gv source=(http://search.cpan.org/CPAN/authors/id/P/PA/PARDUS/File-DesktopEntry/File-DesktopEntry-$pkgver.tar.gz) docs=("readme" "manifest" "changes") url=http://search.cpan.org/~pardus/File-DesktopEntry-0.04/lib/File/DesktopEntry.pm slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "perl-File-Desktop-Entry (Perl bject to handle .desktop files)" "This module is used to work with .desktop files. The format of these" "files is specified by the freedesktop \"Desktop Entry\" specification." "This module can parse these files but also knows how to run the" "applciations defined by these files." ) build() { cd $startdir/src/File-DesktopEntry-$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 }