wok diff kexec-tools/receipt @ rev 16481

xpaint: clean up packaged files
author Christophe Lincoln <pankso@slitaz.org>
date Wed Apr 23 03:43:46 2014 +0200 (2014-04-23)
parents 7896f0694ef6
children 17e313b5b9c1
line diff
     1.1 --- a/kexec-tools/receipt	Sat Aug 10 21:12:16 2013 +0000
     1.2 +++ b/kexec-tools/receipt	Wed Apr 23 03:43:46 2014 +0200
     1.3 @@ -9,6 +9,7 @@
     1.4  TARBALL="$PACKAGE-$VERSION.tar.xz"
     1.5  WEB_SITE="ftp://ftp.kernel.org/pub/linux/utils/kernel/kexec/"
     1.6  WGET_URL="${WEB_SITE}$TARBALL"
     1.7 +HOST_ARCH="i486 arm x86_64"
     1.8  
     1.9  DEPENDS="zlib"
    1.10  BUILD_DEPENDS="zlib-dev liblzma-dev"
    1.11 @@ -18,12 +19,26 @@
    1.12  {
    1.13  	cd $src
    1.14  	export LDFLAGS="-lpthread"
    1.15 -	./configure prefix=/usr \
    1.16 -		--target=i386-linux &&
    1.17 +	case "$ARCH" in
    1.18 +	i?86)
    1.19 +		./configure prefix=/usr \
    1.20 +			--target=i386-linux ;;
    1.21 +	*)
    1.22 +		./configure prefix=/usr \
    1.23 +			--build=$BUILD_SYSTEM \
    1.24 +			--host=$HOST_SYSTEM ;;
    1.25 +	esac &&
    1.26  	make &&
    1.27  	make DESTDIR=$DESTDIR install
    1.28  }
    1.29  
    1.30 +# Important cross compiled package so run readelf.
    1.31 +testsuite()
    1.32 +{
    1.33 +	cd $install
    1.34 +	readelf -h usr/sbin/kexec
    1.35 +}
    1.36 +
    1.37  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.38  genpkg_rules()
    1.39  {