wok-next view perl/receipt @ rev 21096

Update SliTaz syslinuxes
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Jan 01 13:15:54 2019 +0200 (2019-01-01)
parents a43eb412173d
children 82b613cfd1e0
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="bzlib gdbm 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 }