wok-6.x annotate perl-thread/receipt @ rev 23051
perl-thread: fix path
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Mar 06 17:01:11 2020 +0100 (2020-03-06) |
parents | 7423cf91a25b |
children | c6796c6304f6 |
rev | line source |
---|---|
pascal@15380 | 1 # SliTaz package receipt. |
pascal@15380 | 2 |
pascal@15380 | 3 PACKAGE="perl-thread" |
pascal@15381 | 4 SOURCE="perl" |
pascal@20471 | 5 VERSION="5.14.1" |
pascal@15380 | 6 CATEGORY="development" |
pascal@15380 | 7 SHORT_DESC="Full Perl interpreter and modules." |
pascal@15380 | 8 MAINTAINER="pankso@slitaz.org" |
pascal@15380 | 9 LICENSE="GPL" |
pascal@15381 | 10 TARBALL="$SOURCE-$VERSION.tar.bz2" |
pascal@15380 | 11 DEPENDS="libdb gdbm zlib" |
pascal@15380 | 12 BUILD_DEPENDS="db gdbm zlib less" |
pascal@15380 | 13 WEB_SITE="http://www.perl.org/" |
pascal@15380 | 14 WGET_URL="http://ftp.funet.fi/pub/CPAN/src/$TARBALL" |
pascal@15380 | 15 |
pascal@15380 | 16 # Rules to configure and make the package. |
pascal@15380 | 17 # |
pascal@15380 | 18 compile_rules() |
pascal@15380 | 19 { |
pascal@23051 | 20 ./configure.gnu --prefix=/usr -Dusethreads \ |
pascal@23051 | 21 -Darchname="$ARCH-linux-thread-multi" \ |
pascal@23051 | 22 -Dmyarchname="$ARCH-linux-thread-multi" \ |
pascal@23051 | 23 -Dsitearch="/usr/lib/perl5/site_perl/$VERSION/$ARCH-linux-thread-multi" \ |
pascal@23051 | 24 -Dsitearchexp="/usr/lib/perl5/site_perl/$VERSION/$ARCH-linux-thread-multi" \ |
pascal@23051 | 25 -Darchlib="/usr/lib/perl5/$VERSION/$ARCH-linux-thread-multi" \ |
pascal@23051 | 26 -Darchlibexp="/usr/lib/perl5/$VERSION/$ARCH-linux-thread-multi" \ |
pascal@23051 | 27 -Dinstallarchlib="/usr/lib/perl5/$VERSION/$ARCH-linux-thread-multi" && |
pascal@15380 | 28 make && |
pascal@15380 | 29 make install |
pascal@15380 | 30 } |
pascal@15380 | 31 |
pascal@15380 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@15380 | 33 genpkg_rules() |
pascal@15380 | 34 { |
pascal@15380 | 35 mkdir -p $fs/usr |
pascal@15380 | 36 cp -a $install/usr/bin $fs/usr |
pascal@15380 | 37 cp -a $install/usr/lib $fs/usr |
pascal@15380 | 38 } |
pascal@15380 | 39 |
pascal@15380 | 40 # Pre install commands for Tazpkg. |
pascal@15380 | 41 # Remove perl link to microperl if any. |
pascal@15380 | 42 # |
pascal@15380 | 43 pre_install() |
pascal@15380 | 44 { |
pascal@18730 | 45 rm -f "$1/usr/bin/perl" |
pascal@15380 | 46 } |