wok annotate perl/receipt @ rev 243
Linux: patches compatible with busybox/patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 18 22:54:56 2008 +0100 (2008-02-18) |
parents | 8d79fbb0f566 |
children | 49b99a0389d9 |
rev | line source |
---|---|
pankso@18 | 1 # SliTaz package receipt. |
pankso@18 | 2 |
pankso@18 | 3 PACKAGE="perl" |
pankso@18 | 4 VERSION="5.8.8" |
pankso@204 | 5 CATEGORY="development" |
pankso@18 | 6 SHORT_DESC="Full Perl interpreter and modules." |
pankso@18 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@18 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@18 | 9 WEB_SITE="http://www.perl.org/" |
pankso@18 | 10 WGET_URL="http://ftp.funet.fi/pub/CPAN/src/$TARBALL" |
pankso@18 | 11 |
pankso@18 | 12 # Rules to configure and make the package. |
pankso@18 | 13 # |
pankso@18 | 14 compile_rules() |
pankso@18 | 15 { |
pankso@18 | 16 cd $src |
pankso@18 | 17 ./configure.gnu --prefix=/usr |
pankso@18 | 18 make |
pankso@18 | 19 make DESTDIR=$PWD/_pkg install |
pankso@18 | 20 } |
pankso@18 | 21 |
pankso@18 | 22 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@18 | 23 genpkg_rules() |
pankso@18 | 24 { |
pankso@18 | 25 mkdir -p $fs/usr |
pankso@18 | 26 cp -a $_pkg/usr/bin $fs/usr |
pankso@18 | 27 cp -a $_pkg/usr/lib $fs/usr |
pankso@18 | 28 strip -s $fs/usr/bin/a2p |
pankso@18 | 29 strip -s $fs/usr/bin/perl |
pankso@18 | 30 strip -s $fs/usr/bin/perl5.8.8 |
pankso@18 | 31 } |
pankso@18 | 32 |
pankso@18 | 33 # Pre install commands for Tazpkg. |
pankso@18 | 34 # Remove perl link to microperl if any. |
pankso@18 | 35 # |
pankso@18 | 36 pre_install() |
pankso@18 | 37 { |
pankso@18 | 38 echo "Processing pre-install commands..." |
pankso@18 | 39 rm -f $1/usr/bin/perl |
pankso@18 | 40 } |