wok-current annotate perl-thread/receipt @ rev 15380

Add perl-thread
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Oct 21 10:20:30 2013 +0000 (2013-10-21)
parents
children 2ebee740f13d
rev   line source
pascal@15380 1 # SliTaz package receipt.
pascal@15380 2
pascal@15380 3 PACKAGE="perl-thread"
pascal@15380 4 VERSION="5.12.3"
pascal@15380 5 CATEGORY="development"
pascal@15380 6 SHORT_DESC="Full Perl interpreter and modules."
pascal@15380 7 MAINTAINER="pankso@slitaz.org"
pascal@15380 8 LICENSE="GPL"
pascal@15380 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@15380 10 DEPENDS="libdb gdbm zlib"
pascal@15380 11 BUILD_DEPENDS="db gdbm zlib less"
pascal@15380 12 WEB_SITE="http://www.perl.org/"
pascal@15380 13 WGET_URL="http://ftp.funet.fi/pub/CPAN/src/$TARBALL"
pascal@15380 14
pascal@15380 15 # Rules to configure and make the package.
pascal@15380 16 #
pascal@15380 17 compile_rules()
pascal@15380 18 {
pascal@15380 19 cd $src
pascal@15380 20 ./configure.gnu --prefix=/usr -Dusethreads &&
pascal@15380 21 make &&
pascal@15380 22 make install
pascal@15380 23 }
pascal@15380 24
pascal@15380 25 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@15380 26 genpkg_rules()
pascal@15380 27 {
pascal@15380 28 mkdir -p $fs/usr
pascal@15380 29 cp -a $install/usr/bin $fs/usr
pascal@15380 30 cp -a $install/usr/lib $fs/usr
pascal@15380 31 }
pascal@15380 32
pascal@15380 33 # Pre install commands for Tazpkg.
pascal@15380 34 # Remove perl link to microperl if any.
pascal@15380 35 #
pascal@15380 36 pre_install()
pascal@15380 37 {
pascal@15380 38 echo "Processing pre-install commands..."
pascal@15380 39 rm -f $1/usr/bin/perl
pascal@15380 40 }