wok rev 15953

arm: fix file cross compilation and add testsuite
author Christophe Lincoln <pankso@slitaz.org>
date Sun Feb 23 15:49:23 2014 +0100 (2014-02-23)
parents 30509da0e83b
children b1569e676919
files file/receipt
line diff
     1.1 --- a/file/receipt	Sun Feb 23 15:40:01 2014 +0100
     1.2 +++ b/file/receipt	Sun Feb 23 15:49:23 2014 +0100
     1.3 @@ -14,6 +14,11 @@
     1.4  DEPENDS="zlib libmagic"
     1.5  BUILD_DEPENDS="zlib-dev python"
     1.6  
     1.7 +# Handle cross compilation. python is installed in a ARM cook env.
     1.8 +case "$ARCH" in
     1.9 +	arm) BUILD_DEPENDS="" ;;
    1.10 +esac
    1.11 +
    1.12  # Rules to configure and make the package.
    1.13  compile_rules()
    1.14  {
    1.15 @@ -36,3 +41,9 @@
    1.16  	#cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.17  	cp -a $install/usr/share/misc $fs/usr/share
    1.18  }
    1.19 +
    1.20 +# Be sure it as cross compile.
    1.21 +testsuite()
    1.22 +{
    1.23 +	readelf -h $install/usr/bin/file
    1.24 +}