wok view file/receipt @ rev 18121

Up musl-libc (1.1.10)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jun 08 17:50:01 2015 +0200 (2015-06-08)
parents 252c035d8cdf
children b47f452b7411
line source
1 # SliTaz package receipt.
3 PACKAGE="file"
4 VERSION="5.22"
5 CATEGORY="system-tools"
6 SHORT_DESC="Determines file type using 'magic' numbers"
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 # Please, update too: libmagic, libmagic-dev, python-magic.
19 # Handle cross compilation. python is installed in a ARM cook env.
20 case "$ARCH" in
21 arm) BUILD_DEPENDS="" ;;
22 esac
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 ./configure \
28 --datarootdir=/usr/share \
29 $CONFIGURE_ARGS &&
30 make && make install &&
31 cd python &&
32 python setup.py build &&
33 python setup.py install --root=$DESTDIR
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/share
40 cp -a $install/usr/bin $fs/usr
41 cp -a $install/usr/share/misc $fs/usr/share
42 }
44 # Be sure it as cross compile.
45 testsuite()
46 {
47 readelf -h $install/usr/bin/file
48 }