wok rev 20948

updated gawk (4.0.1 -> 4.2.1)
author Hans-G?nter Theisgen
date Sun Mar 03 15:51:24 2019 +0100 (2019-03-03)
parents 3150873c02fa
children cccbc9bf7137
files gawk/receipt
line diff
     1.1 --- a/gawk/receipt	Sun Mar 03 15:14:54 2019 +0100
     1.2 +++ b/gawk/receipt	Sun Mar 03 15:51:24 2019 +0100
     1.3 @@ -1,43 +1,52 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="gawk"
     1.7 -VERSION="4.0.1"
     1.8 +VERSION="4.2.1"
     1.9  CATEGORY="development"
    1.10  SHORT_DESC="GNU awk to handle simple data-reformatting."
    1.11  MAINTAINER="pankso@slitaz.org"
    1.12  LICENSE="GPL3"
    1.13 +WEB_SITE="https://www.gnu.org/software/gawk/"
    1.14 +
    1.15  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.16 -WEB_SITE="http://www.gnu.org/software/gawk/"
    1.17  WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
    1.18 -HOST_ARCH="i486 arm"
    1.19  
    1.20  DEPENDS=""
    1.21  BUILD_DEPENDS=""
    1.22 +HOST_ARCH="i486 arm"
    1.23  
    1.24  # Rules to compile & install the temporary toolchain.
    1.25  cook_tmp_toolchain()
    1.26  {
    1.27 -	cd $src
    1.28 -	./configure && make && make install
    1.29 +	./configure &&
    1.30 +	make -j 1 &&
    1.31 +	make install
    1.32  }
    1.33  
    1.34  # Rules to configure and make the package.
    1.35  compile_rules()
    1.36  {
    1.37 -	cd $src
    1.38 -	./configure --libexecdir=/usr/lib \
    1.39 +	./configure \
    1.40 +		--libexecdir=/usr/lib \
    1.41  		$CONFIGURE_ARGS &&
    1.42 -	make &&	make install
    1.43 +	make -j 1 &&
    1.44 +	make install
    1.45  }
    1.46  
    1.47  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.48  genpkg_rules()
    1.49  {
    1.50 +	# locales
    1.51  	mkdir -p $fs/usr/share/locale
    1.52 -	cp -a $install/usr/bin $fs/usr
    1.53 +	LOCALES="da de es fr id it pt_BR zh_CN"
    1.54 +	for locale in $LOCALES
    1.55 +		do
    1.56 +		cp -a $install/usr/share/locale/$locale $fs/usr/share/locale
    1.57 +		done
    1.58 +
    1.59 +	cp -a $install/usr/bin		$fs/usr
    1.60  	
    1.61 -	cp -a $install/usr/share/awk $fs/usr/share
    1.62 -	cp -a $install/usr/share/locale/fr $fs/usr/share/locale
    1.63 +	cp -a $install/usr/share/awk	$fs/usr/share
    1.64  }
    1.65  
    1.66  # Pre and post install commands for Tazpkg.