wok view microperl/receipt @ rev 200
Old category devel moved to development
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Feb 13 00:25:19 2008 +0100 (2008-02-13) |
parents | 3f18ea6cb6ad |
children | 17a39e4461e4 |
line source
1 # SliTaz package receipt.
3 PACKAGE="microperl"
4 VERSION="5.8.8"
5 CATEGORY="extra"
6 SHORT_DESC="A micro version of Perl."
7 MAINTAINER="pankso@slitaz.org"
8 WANTED="perl"
9 WEB_SITE="http://www.perl.org/"
11 # Rules to configure and make the package.
12 #
13 # Microperl is a special package. We need to sed uconfig.sh and
14 # regenerate the Makefile.micro to modify the configuration.
15 #
16 compile_rules()
17 {
18 cd $src
19 # Install in /usr (default is /usr/local).
20 sed -i s/'usr\/local'/'usr'/ uconfig.sh
21 # Sed to search mods in /usr/lib/perl5.
22 sed -i s/'perl5\/5.9'/'perl5'/ uconfig.sh
23 # Optimisation.
24 sed -i s/'unknown'/'i486-pc-linux-gnu'/ uconfig.sh
25 # Make it!
26 make -f Makefile.micro regen_uconfig
27 make -f Makefile.micro
28 strip microperl
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/bin
35 cp -a $src/microperl $fs/usr/bin
36 }