wok-next view file/receipt @ rev 21234

Up tazlito (522)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Dec 04 11:14:50 2019 +0100 (2019-12-04)
parents add40df8725d
children cedb302b9195
line source
1 # SliTaz package receipt v2.
3 PACKAGE="file"
4 VERSION="5.35"
5 CATEGORY="system-tools"
6 SHORT_DESC="Determines file type using 'magic' numbers"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://github.com/file/file"
10 LFS="http://www.linuxfromscratch.org/lfs/view/development/chapter06/file.html"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://github.com/file/file/archive/FILE${VERSION/./_}.tar.gz"
14 TARBALL_SHA1="2a00782750d015cf654ace2e53239e02d28c09e9"
16 BUILD_DEPENDS="automake libtool zlib-dev python python3"
17 SPLIT="libmagic libmagic-dev python-magic python3-magic"
19 COPY_std="file"
20 COPY_libmagic="*.so.* magic.mgc"
21 COPY_libmagic_dev="@dev *.so"
22 COPY_python_magic="python2*/"
23 COPY_python3_magic="python3*/"
25 DEPENDS_std="libmagic"
26 DEPENDS_libmagic="zlib"
27 DEPENDS_libmagic_dev="libmagic"
28 DEPENDS_python_magic="$PACKAGE python"
29 DEPENDS_python3_magic="$PACKAGE python"
31 CAT_libmagic="libs|shared library"
32 CAT_python_magic="development|Python2 bindings"
33 CAT_python3_magic="development|Python3 bindings"
35 TAGS_std="LFS"
37 compile_rules() {
38 autoreconf -f -i &&
39 ./configure \
40 --libdir=/usr/lib \
41 $CONFIGURE_ARGS &&
42 fix libtool &&
43 make &&
44 make install || return 1
46 rmdir --ignore-fail-on-non-empty $install/usr/share/man/man5/
48 cd python
49 python -B setup.py build &&
50 python -B setup.py install --root=$install || return 1
52 python3 -B setup.py build &&
53 python3 -B setup.py install --root=$install
55 }
57 # Be sure it as cross compile.
58 testsuite() {
59 readelf -h $install/usr/bin/file
60 }