wok view file/receipt @ rev 20415

*l2tp*: typos
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Aug 02 13:34:15 2018 +0200 (2018-08-02)
parents 17a94fdd3abe
children ac5bcc9f308c
line source
1 # SliTaz package receipt.
3 PACKAGE="file"
4 VERSION="5.30"
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 setuptools"
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 sed -i 's/, has_debug_info = 1/, has_debug_info = 0/' src/readelf.c
28 ./configure \
29 --datarootdir=/usr/share \
30 $CONFIGURE_ARGS &&
31 make && make install &&
32 cd python &&
33 python setup.py build &&
34 python setup.py install --root=$DESTDIR
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/share
41 cp -a $install/usr/bin $fs/usr
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 }