wok-next view file/receipt @ rev 19662

Remove tazchroot (not used for yearsand unusable)
author Christophe Lincoln <pankso@slitaz.org>
date Thu Mar 16 18:37:27 2017 +0100 (2017-03-16)
parents b47f452b7411
children 7387df590f12
line source
1 # SliTaz package receipt.
3 PACKAGE="file"
4 VERSION="5.28"
5 CATEGORY="system-tools"
6 SHORT_DESC="Determines file type using 'magic' numbers"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="http://www.darwinsys.com/file/"
10 HOST_ARCH="i486 arm"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="ftp://ftp.astron.com/pub/file/$TARBALL"
15 DEPENDS="zlib libmagic"
16 BUILD_DEPENDS="zlib-dev python setuptools"
17 SPLIT="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 $CONFIGURE_ARGS && make && make install
29 cd python
30 python setup.py build &&
31 python setup.py install --root=$DESTDIR
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 cook_copy_files file magic.mgc
38 }
40 # Be sure it as cross compile.
41 testsuite()
42 {
43 readelf -h $install/usr/bin/file
44 }