wok-current view microperl/receipt @ rev 25731
Merge wok for both arch and few updates
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Dec 05 08:28:03 2024 +0000 (2 months ago) |
parents | 3ad63c8fc2f9 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="microperl"
4 SOURCE="perl"
5 VERSION="5.24.4"
6 CATEGORY="development"
7 SHORT_DESC="A micro version of Perl."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 DEPENDS="libdb gdbm zlib"
12 BUILD_DEPENDS="db gdbm zlib less"
13 WEB_SITE="https://www.perl.org/"
14 WGET_URL="http://ftp.funet.fi/pub/CPAN/src/$TARBALL"
16 HOST_ARCH="i486 x86_64"
18 current_version()
19 {
20 wget -O - $WEB_SITE 2>/dev/null | \
21 sed '/version-highlight/!d;s|.*">||;s|<.*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 # patch to fix issue Perl_fp_class_denorm(). test
28 # see https://github.com/Perl/perl5/commit/488307f
29 patch -p1 -i $stuff/perl-5.24.4-math-fix.patch
31 # patch to fix compiling microperl
32 patch -p1 -i $stuff/perl-5.24.1-microperl-fix.patch
33 # Install in /usr (default is /usr/local).
34 sed -i s/'usr\/local'/'usr'/ uconfig.sh
35 # Sed to search mods in /usr/lib/perl5.
36 sed -i s/'perl5\/'${VERSION%.*}/'perl5'/ uconfig.sh
37 # Optimisation.
38 sed -i s/'unknown'/$ARCH-linux/ uconfig.sh
39 # Make it!
40 make -f Makefile.micro regen_uconfig &&
41 make -f Makefile.micro &&
42 strip microperl
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/usr/bin
49 cp -a $src/microperl $fs/usr/bin
50 }