wok-next annotate perl-thread/receipt @ rev 20239
linux-cloop: tiny patch (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Nov 06 18:03:36 2017 +0100 (2017-11-06) |
parents | 6fab3264ba87 |
children |
rev | line source |
---|---|
pascal@15380 | 1 # SliTaz package receipt. |
pascal@15380 | 2 |
pascal@15380 | 3 PACKAGE="perl-thread" |
al@19770 | 4 VERSION="5.24.1" |
pascal@15380 | 5 CATEGORY="development" |
al@19770 | 6 SHORT_DESC="Full Perl interpreter and modules" |
pascal@15380 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15380 | 8 LICENSE="GPL" |
al@19770 | 9 WEB_SITE="https://www.perl.org/" |
al@19770 | 10 |
al@19770 | 11 TARBALL="perl-$VERSION.tar.bz2" |
al@19770 | 12 WGET_URL="http://www.cpan.org/src/5.0/$TARBALL" |
al@19770 | 13 |
pascal@15380 | 14 DEPENDS="libdb gdbm zlib" |
pascal@15380 | 15 BUILD_DEPENDS="db gdbm zlib less" |
al@19770 | 16 SIBLINGS="microperl perl-thread" |
pascal@15380 | 17 |
pascal@15380 | 18 # Rules to configure and make the package. |
pascal@15380 | 19 # |
pascal@15380 | 20 compile_rules() |
pascal@15380 | 21 { |
al@19770 | 22 ./configure.gnu \ |
al@19770 | 23 --prefix=/usr \ |
al@19770 | 24 -Dusethreads && |
pascal@15380 | 25 make && |
pascal@15380 | 26 make install |
pascal@15380 | 27 } |
pascal@15380 | 28 |
pascal@15380 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@15380 | 30 genpkg_rules() |
pascal@15380 | 31 { |
al@19770 | 32 copy bin/ lib/ |
pascal@15380 | 33 } |
pascal@15380 | 34 |
pascal@15380 | 35 # Pre install commands for Tazpkg. |
pascal@15380 | 36 # Remove perl link to microperl if any. |
pascal@15380 | 37 # |
al@19770 | 38 pre_install() { |
al@19770 | 39 [ ! -e "$1/usr/bin/perl" ] || rm -f "$1/usr/bin/perl" |
pascal@15380 | 40 } |