wok-6.x view microperl/receipt @ rev 6017

icedtea6: Upgrade to 1.8.1
author Matthew Sheets <rcx@zoominternet.net>
date Sat Aug 14 21:49:48 2010 +0000 (2010-08-14)
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 }