wok-undigest diff perl/receipt @ rev 1235

compile alsa-lib
author Hans-G?nter Theisgen
date Sat Aug 06 17:22:27 2022 +0100 (2022-08-06)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/perl/receipt	Sat Aug 06 17:22:27 2022 +0100
     1.3 @@ -0,0 +1,70 @@
     1.4 +# SliTaz package receipt v2.
     1.5 +
     1.6 +PACKAGE="perl"
     1.7 +VERSION="5.28.1"
     1.8 +CATEGORY="development"
     1.9 +SHORT_DESC="Perl interpreter and modules"
    1.10 +MAINTAINER="devel@slitaz.org"
    1.11 +LICENSE="GPL"
    1.12 +WEB_SITE="https://www.perl.org/"
    1.13 +LFS="http://www.linuxfromscratch.org/lfs/view/stable/chapter06/perl.html"
    1.14 +
    1.15 +# WARNING
    1.16 +# Due to Perl libraries use versioned paths like
    1.17 +#   /usr/lib/perl5/$VERSION/
    1.18 +#   /usr/lib/perl5/site_perl/$VERSION/
    1.19 +# etc., you need to update ALL the Perl related packages on ANY change
    1.20 +# of the Perl version!
    1.21 +
    1.22 +TARBALL="$PACKAGE-$VERSION.tar.xz"
    1.23 +WGET_URL="http://www.cpan.org/src/5.0/$TARBALL"
    1.24 +# Integrity check: http://www.cpan.org/src/5.0/
    1.25 +TARBALL_SHA256="fea7162d4cca940a387f0587b93f6737d884bf74d8a9d7cfd978bc12cd0b202d"
    1.26 +
    1.27 +# force-arch: architecture-dependent paths here,
    1.28 +# perl-dev contains /usr/lib/perl5/5.28.1/i486-linux-thread-multi/CORE/EXTERN.h
    1.29 +# and so on
    1.30 +COOKOPTS="!perlz force-arch"
    1.31 +BUILD_DEPENDS="zlib-dev bzip2-dev less gdbm-dev"
    1.32 +SPLIT="$PACKAGE-core $PACKAGE $PACKAGE-dev"
    1.33 +
    1.34 +compile_rules() {
    1.35 +	export BUILD_ZLIB=False
    1.36 +	export BUILD_BZIP2=0
    1.37 +	sh Configure -des \
    1.38 +		-Dprefix=/usr \
    1.39 +		-Dvendorprefix=/usr \
    1.40 +		-Dman1dir=/usr/share/man/man1 \
    1.41 +		-Dman3dir=/usr/share/man/man3 \
    1.42 +		-Dpager="/usr/bin/less -isR" \
    1.43 +		-Duseshrplib \
    1.44 +		-Dusethreads &&
    1.45 +	make &&
    1.46 +	make install || return 1
    1.47 +
    1.48 +	find $install -type f -exec chmod u+w '{}' \; # 444->644, 555->755
    1.49 +}
    1.50 +
    1.51 +genpkg_rules() {
    1.52 +	case $PACKAGE in
    1.53 +		perl-core)
    1.54 +			copy perl perl$VERSION libperl.so
    1.55 +			DEPENDS="glibc-base"
    1.56 +			CAT="development|minimal interpreter"
    1.57 +			;;
    1.58 +		perl)
    1.59 +			copy @std @rm
    1.60 +			DEPENDS="libbzip2 libgdbm zlib perl-core"
    1.61 +			PROVIDE="microperl"
    1.62 +			TAGS="LFS"
    1.63 +			;;
    1.64 +		*-dev)
    1.65 +			copy @dev
    1.66 +			;;
    1.67 +	esac
    1.68 +}
    1.69 +
    1.70 +# Remove perl link to microperl if any.
    1.71 +pre_install_perl_core() {
    1.72 +	rm -f "$1/usr/bin/perl"
    1.73 +}