wok-next diff perl-thread/receipt @ rev 20636

Fix "can't execute '/usr/bin/update-mime-database': No such file or directory"
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Apr 27 15:12:17 2018 +0300 (2018-04-27)
parents 6fab3264ba87
children
line diff
     1.1 --- a/perl-thread/receipt	Fri Dec 25 15:23:46 2015 +0200
     1.2 +++ b/perl-thread/receipt	Fri Apr 27 15:12:17 2018 +0300
     1.3 @@ -1,24 +1,27 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="perl-thread"
     1.7 -SOURCE="perl"
     1.8 -VERSION="5.12.3"
     1.9 +VERSION="5.24.1"
    1.10  CATEGORY="development"
    1.11 -SHORT_DESC="Full Perl interpreter and modules."
    1.12 +SHORT_DESC="Full Perl interpreter and modules"
    1.13  MAINTAINER="pankso@slitaz.org"
    1.14  LICENSE="GPL"
    1.15 -TARBALL="$SOURCE-$VERSION.tar.bz2"
    1.16 +WEB_SITE="https://www.perl.org/"
    1.17 +
    1.18 +TARBALL="perl-$VERSION.tar.bz2"
    1.19 +WGET_URL="http://www.cpan.org/src/5.0/$TARBALL"
    1.20 +
    1.21  DEPENDS="libdb gdbm zlib"
    1.22  BUILD_DEPENDS="db gdbm zlib less"
    1.23 -WEB_SITE="http://www.perl.org/"
    1.24 -WGET_URL="http://ftp.funet.fi/pub/CPAN/src/$TARBALL"
    1.25 +SIBLINGS="microperl perl-thread"
    1.26  
    1.27  # Rules to configure and make the package.
    1.28  #
    1.29  compile_rules()
    1.30  {
    1.31 -	cd $src
    1.32 -	./configure.gnu --prefix=/usr -Dusethreads &&
    1.33 +	./configure.gnu \
    1.34 +		--prefix=/usr \
    1.35 +		-Dusethreads &&
    1.36  	make &&
    1.37  	make install
    1.38  }
    1.39 @@ -26,15 +29,12 @@
    1.40  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.41  genpkg_rules()
    1.42  {
    1.43 -	mkdir -p $fs/usr
    1.44 -	cp -a $install/usr/bin $fs/usr
    1.45 -	cp -a $install/usr/lib $fs/usr
    1.46 +	copy bin/ lib/
    1.47  }
    1.48  
    1.49  # Pre install commands for Tazpkg.
    1.50  # Remove perl link to microperl if any.
    1.51  #
    1.52 -pre_install()
    1.53 -{
    1.54 -	rm -f "$1/usr/bin/perl"
    1.55 +pre_install() {
    1.56 +	[ ! -e "$1/usr/bin/perl" ] || rm -f "$1/usr/bin/perl"
    1.57  }