wok annotate 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
rev   line source
erjo@170 1 # SliTaz package receipt.
erjo@170 2
erjo@170 3 PACKAGE="file"
pankso@14250 4 VERSION="5.14"
pankso@211 5 CATEGORY="system-tools"
erjo@170 6 SHORT_DESC="Retrieve file type."
erjo@784 7 MAINTAINER="erjo@slitaz.org"
pascal@15379 8 LICENSE="BSD"
erjo@170 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
slaxemulator@11289 10 WEB_SITE="http://www.darwinsys.com/file/"
slaxemulator@11289 11 WGET_URL="ftp://ftp.astron.com/pub/file/$TARBALL"
pankso@12982 12 HOST_ARCH="i486 arm"
pankso@12982 13
pankso@12982 14 DEPENDS="zlib libmagic"
pascal@14901 15 BUILD_DEPENDS="zlib-dev python"
erjo@170 16
pankso@15953 17 # Handle cross compilation. python is installed in a ARM cook env.
pankso@15953 18 case "$ARCH" in
pankso@15953 19 arm) BUILD_DEPENDS="" ;;
pankso@15953 20 esac
pankso@15953 21
erjo@170 22 # Rules to configure and make the package.
erjo@170 23 compile_rules()
erjo@170 24 {
erjo@170 25 cd $src
pankso@10365 26 ./configure \
pankso@10365 27 --datarootdir=/usr/share \
pankso@12982 28 $CONFIGURE_ARGS &&
pascal@14901 29 make && make install &&
pascal@14901 30 cd python &&
pascal@14901 31 python setup.py build &&
pascal@14901 32 python setup.py install --root=$DESTDIR
erjo@170 33 }
erjo@170 34
erjo@170 35 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@170 36 genpkg_rules()
erjo@170 37 {
pankso@12982 38 mkdir -p $fs/usr/share
pankso@12982 39 cp -a $install/usr/bin $fs/usr
pankso@12982 40 # --> libmagic
pankso@12982 41 #cp -a $install/usr/lib/*.so* $fs/usr/lib
pankso@12982 42 cp -a $install/usr/share/misc $fs/usr/share
erjo@170 43 }
pankso@15953 44
pankso@15953 45 # Be sure it as cross compile.
pankso@15953 46 testsuite()
pankso@15953 47 {
pankso@15953 48 readelf -h $install/usr/bin/file
pankso@15953 49 }