# perl, ftp://ftp.perl.org/pub/perl/CPAN/src/ name=perl version=5.6.1 source=($name-$version.tar.gz) build() { cd $name-$version ./Configure -des \ -Dprefix=/usr \ -Dinstallprefix=$PKG/usr \ -Dman1ext=1perl \ -Dman3ext=3perl \ -Doptimize="$CFLAGS" make make test make install (cd $PKG/usr/bin; ln -sf perl$version perl; ln -sf c2ph pstruct) find $PKG -type f | xargs grep -l "$PKG" | xargs -n1 perl -i -p -e "s|$PKG||g;" chmod -R +w $PKG strip $PKG/usr/bin/* gzip -9 $PKG/usr/man/man?/* }