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