wok annotate file/receipt @ rev 20415

*l2tp*: typos
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Aug 02 13:34:15 2018 +0200 (2018-08-02)
parents 17a94fdd3abe
children ac5bcc9f308c
rev   line source
erjo@170 1 # SliTaz package receipt.
erjo@170 2
erjo@170 3 PACKAGE="file"
devl547@19757 4 VERSION="5.30"
pankso@211 5 CATEGORY="system-tools"
al@17217 6 SHORT_DESC="Determines file type using 'magic' numbers"
erjo@784 7 MAINTAINER="erjo@slitaz.org"
pascal@15379 8 LICENSE="BSD"
erjo@170 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
slaxemulator@11289 10 WEB_SITE="http://www.darwinsys.com/file/"
slaxemulator@11289 11 WGET_URL="ftp://ftp.astron.com/pub/file/$TARBALL"
pankso@12982 12 HOST_ARCH="i486 arm"
pankso@12982 13
pankso@12982 14 DEPENDS="zlib libmagic"
pascal@19796 15 BUILD_DEPENDS="zlib-dev python setuptools"
erjo@170 16
al@17217 17 # Please, update too: libmagic, libmagic-dev, python-magic.
al@17217 18
pankso@15953 19 # Handle cross compilation. python is installed in a ARM cook env.
pankso@15953 20 case "$ARCH" in
pankso@15953 21 arm) BUILD_DEPENDS="" ;;
pankso@15953 22 esac
pankso@15953 23
erjo@170 24 # Rules to configure and make the package.
erjo@170 25 compile_rules()
erjo@170 26 {
pascal@19852 27 sed -i 's/, has_debug_info = 1/, has_debug_info = 0/' src/readelf.c
pankso@10365 28 ./configure \
pankso@10365 29 --datarootdir=/usr/share \
pankso@12982 30 $CONFIGURE_ARGS &&
pascal@14901 31 make && make install &&
pascal@14901 32 cd python &&
pascal@14901 33 python setup.py build &&
pascal@14901 34 python setup.py install --root=$DESTDIR
erjo@170 35 }
erjo@170 36
erjo@170 37 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@170 38 genpkg_rules()
erjo@170 39 {
pankso@12982 40 mkdir -p $fs/usr/share
pankso@12982 41 cp -a $install/usr/bin $fs/usr
pankso@12982 42 cp -a $install/usr/share/misc $fs/usr/share
erjo@170 43 }
pankso@15953 44
pankso@15953 45 # Be sure it as cross compile.
pankso@15953 46 testsuite()
pankso@15953 47 {
pankso@15953 48 readelf -h $install/usr/bin/file
pankso@15953 49 }