#Packager: Frédéric Galusik pkgname=perl-cgi pkgver=3.52 pkgrel=1fg #arch=noarch source=(http://search.cpan.org/CPAN/authors/id/M/MA/MARKSTOS/CGI.pm-$pkgver.tar.gz) sourcetemplate=http://people.salixos.org/fredg/packages/$pkgname/$pkgver/ docs=("readme" "manifest" "changes") url=http://search.cpan.org/dist/CGI slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "perl-cgi (perl CGI module)" "This is CGI.pm, an easy-to-use Perl library for writing CGI scripts." ) build() { cd $startdir/src/CGI.pm-$pkgver perl Makefile.PL || exit 1 make OPTIMIZE="$CFLAGS" || exit 1 make install INSTALLDIRS=vendor DESTDIR=$startdir/pkg || exit 1 # Remove man pages (already in Slackware perl package) rm -rf $startdir/pkg/usr/share || 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 }