wok annotate file/receipt @ rev 18311
Up tazpanel(527)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Aug 26 05:53:14 2015 +0300 (2015-08-26) |
parents | 252c035d8cdf |
children | b47f452b7411 |
rev | line source |
---|---|
erjo@170 | 1 # SliTaz package receipt. |
erjo@170 | 2 |
erjo@170 | 3 PACKAGE="file" |
devl547@17646 | 4 VERSION="5.22" |
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@14901 | 15 BUILD_DEPENDS="zlib-dev python" |
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 { |
pankso@10365 | 27 ./configure \ |
pankso@10365 | 28 --datarootdir=/usr/share \ |
pankso@12982 | 29 $CONFIGURE_ARGS && |
pascal@14901 | 30 make && make install && |
pascal@14901 | 31 cd python && |
pascal@14901 | 32 python setup.py build && |
pascal@14901 | 33 python setup.py install --root=$DESTDIR |
erjo@170 | 34 } |
erjo@170 | 35 |
erjo@170 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@170 | 37 genpkg_rules() |
erjo@170 | 38 { |
pankso@12982 | 39 mkdir -p $fs/usr/share |
pankso@12982 | 40 cp -a $install/usr/bin $fs/usr |
pankso@12982 | 41 cp -a $install/usr/share/misc $fs/usr/share |
erjo@170 | 42 } |
pankso@15953 | 43 |
pankso@15953 | 44 # Be sure it as cross compile. |
pankso@15953 | 45 testsuite() |
pankso@15953 | 46 { |
pankso@15953 | 47 readelf -h $install/usr/bin/file |
pankso@15953 | 48 } |