wok view microperl/receipt @ rev 4017
Up: asunder (1.9)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Sep 03 22:42:30 2009 +0200 (2009-09-03) |
parents | 17a39e4461e4 |
children | d9be1b1a5d96 |
line source
1 # SliTaz package receipt.
3 PACKAGE="microperl"
4 VERSION="5.10.0"
5 CATEGORY="development"
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 }