wok-current annotate perl-dev/receipt @ rev 23103
updated libssh and libssh-dev (0.8.7 -> 0.9.3)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Mar 12 11:22:59 2020 +0100 (2020-03-12) |
parents | 74421a6c9fbb |
children | 15650f5d595b |
rev | line source |
---|---|
pascal@23057 | 1 # SliTaz package receipt. |
pascal@23057 | 2 |
pascal@23057 | 3 PACKAGE="perl-dev" |
pascal@23057 | 4 VERSION="5.14.1" |
pascal@23057 | 5 CATEGORY="development" |
pascal@23058 | 6 SHORT_DESC="Full Perl interpreter and modules using libperl.so." |
pascal@23057 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@23057 | 8 LICENSE="GPL" |
pascal@23057 | 9 SOURCE="perl" |
pascal@23057 | 10 TARBALL="$SOURCE-$VERSION.tar.bz2" |
pascal@23057 | 11 DEPENDS="libdb gdbm zlib" |
pascal@23057 | 12 BUILD_DEPENDS="db gdbm zlib less" |
pascal@23069 | 13 WEB_SITE="https://www.perl.org/" |
pascal@23057 | 14 WGET_URL="http://ftp.funet.fi/pub/CPAN/src/$TARBALL" |
pascal@23058 | 15 PROVIDE="perl" |
pascal@23057 | 16 |
pascal@23057 | 17 # Rules to compile & install the temporary toolchain. |
pascal@23057 | 18 cook_tmp_toolchain() |
pascal@23057 | 19 { |
pascal@23057 | 20 { sh Configure -des -Dprefix=/tools \ |
pascal@23057 | 21 -Darchname="$ARCH-linux" \ |
pascal@23057 | 22 -Dmyarchname="$ARCH-linux" \ |
pascal@23057 | 23 -Dsitearch="/usr/lib/perl5/site_perl/$VERSION/$ARCH-linux" \ |
pascal@23057 | 24 -Dsitearchexp="/usr/lib/perl5/site_perl/$VERSION/$ARCH-linux" \ |
pascal@23057 | 25 -Darchlib="/usr/lib/perl5/$VERSION/$ARCH-linux" \ |
pascal@23057 | 26 -Darchlibexp="/usr/lib/perl5/$VERSION/$ARCH-linux" \ |
pascal@23057 | 27 -Dinstallarchlib="/usr/lib/perl5/$VERSION/$ARCH-linux" \ |
pascal@23057 | 28 -Dstatic_ext='Data/Dumper Fcntl IO' |
pascal@23057 | 29 |
pascal@23057 | 30 # Only few tools are needed in the tmp toolchain. |
pascal@23057 | 31 make perl utilities ext/Errno/pm_to_blib |
pascal@23057 | 32 } || return 1 |
pascal@23057 | 33 cp perl pod/pod2man /tools/bin |
pascal@23057 | 34 mkdir -p /tools/lib/perl5/$VERSION |
pascal@23057 | 35 cp -R lib/* /tools/lib/perl5/$VERSION |
pascal@23057 | 36 } |
pascal@23057 | 37 |
pascal@23057 | 38 |
pascal@23057 | 39 # Rules to configure and make the package. |
pascal@23057 | 40 # |
pascal@23057 | 41 compile_rules() |
pascal@23057 | 42 { |
pascal@23057 | 43 ./configure.gnu --prefix=/usr \ |
pascal@23057 | 44 -Duseshrplib \ |
pascal@23057 | 45 -Darchname="$ARCH-linux" \ |
pascal@23057 | 46 -Dmyarchname="$ARCH-linux" \ |
pascal@23057 | 47 -Dsitearch="/usr/lib/perl5/site_perl/$VERSION/$ARCH-linux" \ |
pascal@23057 | 48 -Dsitearchexp="/usr/lib/perl5/site_perl/$VERSION/$ARCH-linux" \ |
pascal@23057 | 49 -Darchlib="/usr/lib/perl5/$VERSION/$ARCH-linux" \ |
pascal@23057 | 50 -Darchlibexp="/usr/lib/perl5/$VERSION/$ARCH-linux" \ |
pascal@23057 | 51 -Dinstallarchlib="/usr/lib/perl5/$VERSION/$ARCH-linux" && |
pascal@23057 | 52 make && |
pascal@23057 | 53 make install |
pascal@23057 | 54 } |
pascal@23057 | 55 |
pascal@23057 | 56 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@23057 | 57 genpkg_rules() |
pascal@23057 | 58 { |
pascal@23057 | 59 mkdir -p $fs/usr |
pascal@23057 | 60 cp -a $install/usr/bin $fs/usr |
pascal@23057 | 61 cp -a $install/usr/lib $fs/usr |
pascal@23057 | 62 } |
pascal@23057 | 63 |
pascal@23057 | 64 # Pre install commands for Tazpkg. |
pascal@23057 | 65 # Remove perl link to microperl if any. |
pascal@23057 | 66 # |
pascal@23057 | 67 pre_install() |
pascal@23057 | 68 { |
pascal@23057 | 69 rm -f "$1/usr/bin/perl" |
pascal@23057 | 70 } |