wok-current view perl/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="perl"
4 VERSION="5.34.0"
5 CATEGORY="development"
6 SHORT_DESC="Full Perl interpreter and modules."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 DEPENDS="libdb gdbm zlib"
11 BUILD_DEPENDS="db gdbm zlib less"
12 WEB_SITE="https://www.perl.org/"
13 WGET_URL="http://ftp.funet.fi/pub/CPAN/src/$TARBALL"
14 HOST_ARCH="i486 x86_64"
16 current_version()
17 {
18 wget -O - $WEB_SITE 2>/dev/null | \
19 sed '/version-highlight/!d;s|.*">||;s|<.*||;q'
20 }
22 # Rules to compile & install the temporary toolchain.
23 cook_tmp_toolchain()
24 {
25 cd $src
26 { sh Configure -des -Dprefix=/tools \
27 -Darchname="$ARCH-linux" \
28 -Dmyarchname="$ARCH-linux" \
29 -Dsitearch="/usr/lib/perl5/site_perl/$VERSION/$ARCH-linux" \
30 -Dsitearchexp="/usr/lib/perl5/site_perl/$VERSION/$ARCH-linux" \
31 -Darchlib="/usr/lib/perl5/$VERSION/$ARCH-linux" \
32 -Darchlibexp="/usr/lib/perl5/$VERSION/$ARCH-linux" \
33 -Dinstallarchlib="/usr/lib/perl5/$VERSION/$ARCH-linux" \
34 -Dstatic_ext='Data/Dumper Fcntl IO'
36 # Only few tools are needed in the tmp toolchain.
37 make perl utilities ext/Errno/pm_to_blib
38 } || return 1
39 cp perl pod/pod2man /tools/bin
40 mkdir -p /tools/lib/perl5/$VERSION
41 cp -R lib/* /tools/lib/perl5/$VERSION
42 }
45 # Rules to configure and make the package.
46 #
47 compile_rules()
48 {
49 ./configure.gnu --prefix=/usr \
50 -Darchname="$ARCH-linux" \
51 -Dmyarchname="$ARCH-linux" \
52 -Dsitearch="/usr/lib/perl5/site_perl/$VERSION/$ARCH-linux" \
53 -Dsitearchexp="/usr/lib/perl5/site_perl/$VERSION/$ARCH-linux" \
54 -Darchlib="/usr/lib/perl5/$VERSION/$ARCH-linux" \
55 -Darchlibexp="/usr/lib/perl5/$VERSION/$ARCH-linux" \
56 -Dinstallarchlib="/usr/lib/perl5/$VERSION/$ARCH-linux" &&
57 make &&
58 make install
59 }
61 # Rules to gen a SliTaz package suitable for Tazpkg.
62 genpkg_rules()
63 {
64 mkdir -p $fs/usr
65 cp -a $install/usr/bin $fs/usr
66 cp -a $install/usr/lib $fs/usr
68 # Ensure remove .la files
69 find $fs -name "*.la" -delete
70 }
72 # Pre install commands for Tazpkg.
73 # Remove perl link to microperl if any.
74 #
75 pre_install()
76 {
77 rm -f "$1/usr/bin/perl"
78 }