wok-6.x view file/receipt @ rev 17622
alarm-clock: no more notify_notification_new_with_status_icon in libnotify 0.7+
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Feb 13 10:21:16 2015 +0100 (2015-02-13) |
parents | 9b32b6182692 |
children | f0e8eec33d8b |
line source
1 # SliTaz package receipt.
3 PACKAGE="file"
4 VERSION="5.20"
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 }