# HG changeset patch # User Eric Joseph-Alexandre # Date 1228487095 -3600 # Node ID 8c3646038b08c1568dae17c5551942278e2a23ab # Parent a9705edeed030f46e175ba1f01abd46d488651a0 Add: perl-core. diff -r a9705edeed03 -r 8c3646038b08 perl-core/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/perl-core/receipt Fri Dec 05 15:24:55 2008 +0100 @@ -0,0 +1,31 @@ +# SliTaz package receipt. + +PACKAGE="perl-core" +VERSION="5.10.0" +CATEGORY="development" +SHORT_DESC="Minimal Perl interpreter." +MAINTAINER="erjo@slitaz.org" +SOURCE="perl" +WANTED="perl" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://www.perl.org/" + + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + _pkg=${WOK}/${WANTED}/${WANTED}-${VERSION}/_pkg + mkdir -p $fs/usr/bin + cp -a $_pkg/usr/bin/perl${VERSION} $fs/usr/bin/ + cd $fs/usr/bin + ln -s perl${VERSION} perl +} + +# Pre install commands for Tazpkg. +# Remove perl link to microperl if any. +# +pre_install() +{ + echo "Processing pre-install commands..." + rm -f $1/usr/bin/perl +}