wok view file/receipt @ rev 21947
updated spl (0.7.7 -> 0.7.13)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Oct 08 17:14:12 2019 +0100 (2019-10-08) |
parents | 63cdeb5a1e77 |
children | fa097cfdd98e |
line source
1 # SliTaz package receipt.
3 PACKAGE="file"
4 VERSION="5.36"
5 CATEGORY="system-tools"
6 SHORT_DESC="Determines file type using 'magic' numbers."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://github.com/file/file"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="ftp://ftp.astron.com/pub/file/$TARBALL"
14 DEPENDS="zlib libmagic"
15 BUILD_DEPENDS="zlib-dev python python-setuptools"
16 HOST_ARCH="i486 arm"
18 # @maintainer: Please, update also: libmagic, libmagic-dev, python-magic.
20 # Handle cross compilation. python is installed in a ARM cook env.
21 case "$ARCH" in
22 arm) BUILD_DEPENDS="" ;;
23 esac
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 sed -i 's/, has_debug_info = 1/, has_debug_info = 0/' src/readelf.c
29 ./configure \
30 --datarootdir=/usr/share \
31 $CONFIGURE_ARGS &&
32 make -j 1 &&
33 make install &&
34 cd python &&
35 python setup.py build &&
36 python setup.py install --root=$DESTDIR
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/share
43 cp -a $install/usr/bin $fs/usr
44 cp -a $install/usr/share/misc $fs/usr/share
45 }
47 # Be sure it as cross compile.
48 testsuite()
49 {
50 readelf -h $install/usr/bin/file
51 }