wok-next view perl/receipt @ rev 21447

updated seamonkey (2.7.2 -> 2.53.2)
author Hans-G?nter Theisgen
date Tue May 05 17:33:00 2020 +0100 (2020-05-05)
parents 82b613cfd1e0
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="perl"
4 VERSION="5.28.1"
5 CATEGORY="development"
6 SHORT_DESC="Perl interpreter and modules"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL"
9 WEB_SITE="https://www.perl.org/"
10 LFS="http://www.linuxfromscratch.org/lfs/view/stable/chapter06/perl.html"
12 # WARNING
13 # Due to Perl libraries use versioned paths like
14 # /usr/lib/perl5/$VERSION/
15 # /usr/lib/perl5/site_perl/$VERSION/
16 # etc., you need to update ALL the Perl related packages on ANY change
17 # of the Perl version!
19 TARBALL="$PACKAGE-$VERSION.tar.xz"
20 WGET_URL="http://www.cpan.org/src/5.0/$TARBALL"
21 # Integrity check: http://www.cpan.org/src/5.0/
22 TARBALL_SHA256="fea7162d4cca940a387f0587b93f6737d884bf74d8a9d7cfd978bc12cd0b202d"
24 # force-arch: architecture-dependent paths here,
25 # perl-dev contains /usr/lib/perl5/5.28.1/i486-linux-thread-multi/CORE/EXTERN.h
26 # and so on
27 COOKOPTS="!perlz force-arch"
28 BUILD_DEPENDS="zlib-dev bzip2-dev less gdbm-dev"
29 SPLIT="$PACKAGE-core $PACKAGE $PACKAGE-dev"
31 compile_rules() {
32 export BUILD_ZLIB=False
33 export BUILD_BZIP2=0
34 sh Configure -des \
35 -Dprefix=/usr \
36 -Dvendorprefix=/usr \
37 -Dman1dir=/usr/share/man/man1 \
38 -Dman3dir=/usr/share/man/man3 \
39 -Dpager="/usr/bin/less -isR" \
40 -Duseshrplib \
41 -Dusethreads &&
42 make &&
43 make install || return 1
45 find $install -type f -exec chmod u+w '{}' \; # 444->644, 555->755
46 }
48 genpkg_rules() {
49 case $PACKAGE in
50 perl-core)
51 copy perl perl$VERSION libperl.so
52 DEPENDS="glibc-base"
53 CAT="development|minimal interpreter"
54 ;;
55 perl)
56 copy @std @rm
57 DEPENDS="libbzip2 libgdbm zlib perl-core"
58 PROVIDE="microperl"
59 TAGS="LFS"
60 ;;
61 *-dev)
62 copy @dev
63 ;;
64 esac
65 }
67 # Remove perl link to microperl if any.
68 pre_install_perl_core() {
69 rm -f "$1/usr/bin/perl"
70 }