wok view file/receipt @ rev 23251

updated nspr and nspr-dev (4.21 -> 4.25)
author Hans-G?nter Theisgen
date Wed Mar 25 14:14:54 2020 +0100 (2020-03-25)
parents 240fb3120638
children b569b85b0fb9
line source
1 # SliTaz package receipt.
3 PACKAGE="file"
4 VERSION="5.38"
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="libmagic zlib"
15 BUILD_DEPENDS="python python-setuptools zlib-dev"
17 HOST_ARCH="i486 arm"
19 # @maintainer: Please, update also: libmagic, libmagic-dev, python-magic.
21 # Handle cross compilation. python is installed in a ARM cook env.
22 case "$ARCH" in
23 arm) BUILD_DEPENDS="" ;;
24 esac
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 sed -i 's/, has_debug_info = 1/, has_debug_info = 0/' \
30 src/readelf.c
32 ./configure \
33 --datarootdir=/usr/share \
34 $CONFIGURE_ARGS &&
35 make -j 1 &&
36 make install &&
37 cd python &&
38 python setup.py build &&
39 python setup.py install --root=$DESTDIR
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr/share
47 cp -a $install/usr/bin $fs/usr
48 cp -a $install/usr/share/misc $fs/usr/share
49 }
51 # Be sure it as cross compile.
52 testsuite()
53 {
54 readelf -h $install/usr/bin/file
55 }