# perl, http://www.perl.com/pub/a/language/info/software.html#stable name=perl version=5.8.8 release=1 source=(http://www.cpan.org/src/$name-$version.tar.gz $name-$version-CVE-2005-3962.patch $name-$version-gcc42.patch) build() { cd $name-$version patch -p4 < ../$name-$version-CVE-2005-3962.patch patch -p1 < ../$name-$version-gcc42.patch ./Configure \ -des \ -Dprefix=/usr \ -Doptimize="$CFLAGS" \ -Darchname="linux" \ -Dman1ext=1pm \ -Dman3ext=3pm \ -Di_gdbm \ -Di_db \ -Duseshrplib=true make make DESTDIR=$PKG install ln -sf perl$version $PKG/usr/bin/perl ln -sf c2ph $PKG/usr/bin/pstruct ln -sf s2p $PKG/usr/bin/psed ln -sf c2ph.1pm $PKG/usr/share/man/man1/pstruct.1pm ln -sf s2p.1pm $PKG/usr/share/man/man1/psed.1pm find $PKG \ -iname 'TODO*' -or \ -iname 'Change*' -or \ -iname 'README*' -or \ -name '*.bs' -or \ -name .packlist -or \ -name perllocal.pod | xargs rm find $PKG -depth -empty -exec rmdir {} \; chmod -R +w $PKG }