wok annotate microperl/receipt @ rev 1499
Up wireshark (1.0.3)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Oct 05 13:11:45 2008 +0000 (2008-10-05) |
parents | 17a39e4461e4 |
children | d9be1b1a5d96 |
rev | line source |
---|---|
pankso@31 | 1 # SliTaz package receipt. |
pankso@31 | 2 |
pankso@31 | 3 PACKAGE="microperl" |
pascal@1499 | 4 VERSION="5.10.0" |
pankso@204 | 5 CATEGORY="development" |
pankso@31 | 6 SHORT_DESC="A micro version of Perl." |
pankso@31 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@31 | 8 WANTED="perl" |
pankso@31 | 9 WEB_SITE="http://www.perl.org/" |
pankso@31 | 10 |
pankso@31 | 11 # Rules to configure and make the package. |
pankso@31 | 12 # |
pankso@31 | 13 # Microperl is a special package. We need to sed uconfig.sh and |
pankso@31 | 14 # regenerate the Makefile.micro to modify the configuration. |
pankso@31 | 15 # |
pankso@31 | 16 compile_rules() |
pankso@31 | 17 { |
pankso@31 | 18 cd $src |
pankso@31 | 19 # Install in /usr (default is /usr/local). |
pankso@31 | 20 sed -i s/'usr\/local'/'usr'/ uconfig.sh |
pankso@31 | 21 # Sed to search mods in /usr/lib/perl5. |
pankso@31 | 22 sed -i s/'perl5\/5.9'/'perl5'/ uconfig.sh |
pankso@31 | 23 # Optimisation. |
pankso@31 | 24 sed -i s/'unknown'/'i486-pc-linux-gnu'/ uconfig.sh |
pankso@31 | 25 # Make it! |
pascal@1499 | 26 make -f Makefile.micro regen_uconfig && |
pascal@1499 | 27 make -f Makefile.micro && |
pankso@31 | 28 strip microperl |
pankso@31 | 29 } |
pankso@31 | 30 |
pankso@31 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@31 | 32 genpkg_rules() |
pankso@31 | 33 { |
pankso@31 | 34 mkdir -p $fs/usr/bin |
pankso@31 | 35 cp -a $src/microperl $fs/usr/bin |
pankso@31 | 36 } |