wok view perl-thread/receipt @ rev 25264
updated re2c (1.3 -> 3.0)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Jul 15 08:59:55 2022 +0100 (2022-07-15) |
parents | c6796c6304f6 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="perl-thread"
4 SOURCE="perl"
5 VERSION="5.14.1"
6 CATEGORY="development"
7 SHORT_DESC="Full Perl interpreter and modules."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL"
10 TARBALL="$SOURCE-$VERSION.tar.bz2"
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 #
24 compile_rules()
25 {
26 ./configure.gnu --prefix=/usr -Dusethreads \
27 -Darchname="$ARCH-linux-thread-multi" \
28 -Dmyarchname="$ARCH-linux-thread-multi" \
29 -Dsitearch="/usr/lib/perl5/site_perl/$VERSION/$ARCH-linux-thread-multi" \
30 -Dsitearchexp="/usr/lib/perl5/site_perl/$VERSION/$ARCH-linux-thread-multi" \
31 -Darchlib="/usr/lib/perl5/$VERSION/$ARCH-linux-thread-multi" \
32 -Darchlibexp="/usr/lib/perl5/$VERSION/$ARCH-linux-thread-multi" \
33 -Dinstallarchlib="/usr/lib/perl5/$VERSION/$ARCH-linux-thread-multi" &&
34 make &&
35 make install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr
42 cp -a $install/usr/bin $fs/usr
43 cp -a $install/usr/lib $fs/usr
44 }
46 # Pre install commands for Tazpkg.
47 # Remove perl link to microperl if any.
48 #
49 pre_install()
50 {
51 rm -f "$1/usr/bin/perl"
52 }