wok-next view perl/receipt @ rev 21028

jwm: typo (again)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Nov 03 04:54:12 2018 +0200 (2018-11-03)
parents f3b01def76fb
children a43eb412173d
line source
1 # SliTaz package receipt v2.
3 PACKAGE="perl"
4 VERSION="5.28.0"
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="059b3cb69970d8c8c5964caced0335b4af34ac990c8e61f7e3f90cd1c2d11e49"
24 COOKOPTS="!perlz"
25 BUILD_DEPENDS="zlib-dev bzip2-dev less gdbm-dev"
26 SPLIT="$PACKAGE-core $PACKAGE $PACKAGE-dev"
28 compile_rules() {
29 export BUILD_ZLIB=False
30 export BUILD_BZIP2=0
31 sh Configure -des \
32 -Dprefix=/usr \
33 -Dvendorprefix=/usr \
34 -Dman1dir=/usr/share/man/man1 \
35 -Dman3dir=/usr/share/man/man3 \
36 -Dpager="/usr/bin/less -isR" \
37 -Duseshrplib \
38 -Dusethreads &&
39 make &&
40 make install
41 }
43 genpkg_rules() {
44 case $PACKAGE in
45 perl-core)
46 copy perl perl$VERSION libperl.so
47 DEPENDS="glibc-base"
48 CAT="development|minimal interpreter"
49 ;;
50 perl)
51 copy @std @rm
52 DEPENDS="bzlib gdbm zlib perl-core"
53 PROVIDE="microperl"
54 TAGS="LFS"
55 ;;
56 *-dev)
57 copy @dev
58 ;;
59 esac
60 }
62 # Remove perl link to microperl if any.
63 pre_install_perl_core() {
64 rm -f "$1/usr/bin/perl"
65 }