wok-next view file/receipt @ rev 19121

Up palemoon (26.2.2)
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Sun May 08 21:37:56 2016 +0200 (2016-05-08)
parents f0e8eec33d8b
children c963361d3d54
line source
1 # SliTaz package receipt.
3 PACKAGE="file"
4 VERSION="5.24"
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 }