wok-current view microperl/receipt @ rev 25701

Fix dep for libglamoregl.so (libepoxy), and miss file for amdgpu (thanks alanyih)
author Stanislas Leduc <shann@slitaz.org>
date Fri Apr 19 12:48:51 2024 +0000 (8 weeks ago)
parents a23978bfa665
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 current_version()
17 {
18 wget -O - $WEB_SITE 2>/dev/null | \
19 sed '/version-highlight/!d;s|.*">||;s|<.*||;q'
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 # patch to fix issue Perl_fp_class_denorm(). test
26 # see https://github.com/Perl/perl5/commit/488307f
27 patch -p1 -i $stuff/perl-5.24.4-math-fix.patch
29 # patch to fix compiling microperl
30 patch -p1 -i $stuff/perl-5.24.1-microperl-fix.patch
31 # Install in /usr (default is /usr/local).
32 sed -i s/'usr\/local'/'usr'/ uconfig.sh
33 # Sed to search mods in /usr/lib/perl5.
34 sed -i s/'perl5\/'${VERSION%.*}/'perl5'/ uconfig.sh
35 # Optimisation.
36 sed -i s/'unknown'/$ARCH-linux/ uconfig.sh
37 # Make it!
38 make -f Makefile.micro regen_uconfig &&
39 make -f Makefile.micro &&
40 strip microperl
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr/bin
47 cp -a $src/microperl $fs/usr/bin
48 }