wok-4.x diff microperl/receipt @ rev 31
Add : fribidi, microperl, sysfsutils
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Dec 18 14:03:04 2007 +0100 (2007-12-18) |
parents | |
children | 972322439d00 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/microperl/receipt Tue Dec 18 14:03:04 2007 +0100 1.3 @@ -0,0 +1,36 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="microperl" 1.7 +VERSION="5.8.8" 1.8 +CATEGORY="base-apps" 1.9 +SHORT_DESC="A micro version of Perl." 1.10 +MAINTAINER="pankso@slitaz.org" 1.11 +WANTED="perl" 1.12 +WEB_SITE="http://www.perl.org/" 1.13 + 1.14 +# Rules to configure and make the package. 1.15 +# 1.16 +# Microperl is a special package. We need to sed uconfig.sh and 1.17 +# regenerate the Makefile.micro to modify the configuration. 1.18 +# 1.19 +compile_rules() 1.20 +{ 1.21 + cd $src 1.22 + # Install in /usr (default is /usr/local). 1.23 + sed -i s/'usr\/local'/'usr'/ uconfig.sh 1.24 + # Sed to search mods in /usr/lib/perl5. 1.25 + sed -i s/'perl5\/5.9'/'perl5'/ uconfig.sh 1.26 + # Optimisation. 1.27 + sed -i s/'unknown'/'i486-pc-linux-gnu'/ uconfig.sh 1.28 + # Make it! 1.29 + make -f Makefile.micro regen_uconfig 1.30 + make -f Makefile.micro 1.31 + strip microperl 1.32 +} 1.33 + 1.34 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.35 +genpkg_rules() 1.36 +{ 1.37 + mkdir -p $fs/usr/bin 1.38 + cp -a $src/microperl $fs/usr/bin 1.39 +}