wok-next view file/receipt @ rev 20883

Check Repology info from h* to l* packages
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Jul 11 02:06:34 2018 +0300 (2018-07-11)
parents 3e3205b3b68f
children d3707642a563
line source
1 # SliTaz package receipt v2.
3 PACKAGE="file"
4 VERSION="5.32"
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"
10 LFS="http://www.linuxfromscratch.org/lfs/view/stable/chapter06/file.html"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://github.com/file/file/archive/FILE${VERSION/./_}.tar.gz"
15 BUILD_DEPENDS_arm=" "
16 BUILD_DEPENDS="automake libtool zlib-dev python"
17 SPLIT="libmagic libmagic-dev python-magic"
19 compile_rules() {
20 autoreconf -f -i &&
21 ./configure \
22 --libdir=/usr/lib \
23 $CONFIGURE_ARGS &&
24 fix libtool &&
25 make && make install || return 1
27 rmdir --ignore-fail-on-non-empty $install/usr/share/man/man5/
29 cd python
30 python setup.py build &&
31 python setup.py install --root=$install
32 }
34 # Be sure it as cross compile.
35 testsuite() {
36 readelf -h $install/usr/bin/file
37 }
39 genpkg_rules() {
40 case $PACKAGE in
41 file)
42 copy file magic.mgc
43 DEPENDS="zlib libmagic"
44 TAGS="LFS"
45 ;;
46 libmagic)
47 copy *.so*
48 CAT="libs|library"
49 DEPENDS="zlib"
50 ;;
51 libmagic-dev)
52 copy @dev
53 DEPENDS="libmagic"
54 ;;
55 python-magic)
56 copy python*/
57 CAT="development|Python bindings"
58 DEPENDS="file python"
59 ;;
60 esac
61 }