wok view file/receipt @ rev 16027

Add to ARM: libnl, wpa_supplicant, wput
author Christophe Lincoln <pankso@slitaz.org>
date Sat Mar 08 07:29:53 2014 +0100 (2014-03-08)
parents 2a5cc8208d36
children 252c035d8cdf
line source
1 # SliTaz package receipt.
3 PACKAGE="file"
4 VERSION="5.14"
5 CATEGORY="system-tools"
6 SHORT_DESC="Retrieve file type."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="BSD"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.darwinsys.com/file/"
11 WGET_URL="ftp://ftp.astron.com/pub/file/$TARBALL"
12 HOST_ARCH="i486 arm"
14 DEPENDS="zlib libmagic"
15 BUILD_DEPENDS="zlib-dev python"
17 # Handle cross compilation. python is installed in a ARM cook env.
18 case "$ARCH" in
19 arm) BUILD_DEPENDS="" ;;
20 esac
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 cd $src
26 ./configure \
27 --datarootdir=/usr/share \
28 $CONFIGURE_ARGS &&
29 make && make install &&
30 cd python &&
31 python setup.py build &&
32 python setup.py install --root=$DESTDIR
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/share
39 cp -a $install/usr/bin $fs/usr
40 # --> libmagic
41 #cp -a $install/usr/lib/*.so* $fs/usr/lib
42 cp -a $install/usr/share/misc $fs/usr/share
43 }
45 # Be sure it as cross compile.
46 testsuite()
47 {
48 readelf -h $install/usr/bin/file
49 }