wok-4.x view microperl/receipt @ rev 83

Add : asunder (GTK light CD ripper)
author Christophe Lincoln <pankso@slitaz.org>
date Wed Jan 02 12:20:39 2008 +0100 (2008-01-02)
parents
children 972322439d00
line source
1 # SliTaz package receipt.
3 PACKAGE="microperl"
4 VERSION="5.8.8"
5 CATEGORY="base-apps"
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 }