wok-next diff kexec-tools/receipt @ rev 17181

copyq: fix deps,icon,editor
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Sat Sep 27 23:57:35 2014 +0200 (2014-09-27)
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	Sat Sep 27 23:57:35 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  {