wok annotate file/receipt @ rev 14901

Add python-magic
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 31 11:54:19 2013 +0200 (2013-07-31)
parents b6a09f38aa31
children 2a5cc8208d36
rev   line source
erjo@170 1 # SliTaz package receipt.
erjo@170 2
erjo@170 3 PACKAGE="file"
pankso@14250 4 VERSION="5.14"
pankso@211 5 CATEGORY="system-tools"
erjo@170 6 SHORT_DESC="Retrieve file type."
erjo@784 7 MAINTAINER="erjo@slitaz.org"
erjo@170 8 TARBALL="$PACKAGE-$VERSION.tar.gz"
slaxemulator@11289 9 WEB_SITE="http://www.darwinsys.com/file/"
slaxemulator@11289 10 WGET_URL="ftp://ftp.astron.com/pub/file/$TARBALL"
pankso@12982 11 HOST_ARCH="i486 arm"
pankso@12982 12
pankso@12982 13 DEPENDS="zlib libmagic"
pascal@14901 14 BUILD_DEPENDS="zlib-dev python"
erjo@170 15
erjo@170 16 # Rules to configure and make the package.
erjo@170 17 compile_rules()
erjo@170 18 {
erjo@170 19 cd $src
pankso@10365 20 ./configure \
pankso@10365 21 --datarootdir=/usr/share \
pankso@12982 22 $CONFIGURE_ARGS &&
pascal@14901 23 make && make install &&
pascal@14901 24 cd python &&
pascal@14901 25 python setup.py build &&
pascal@14901 26 python setup.py install --root=$DESTDIR
erjo@170 27 }
erjo@170 28
erjo@170 29 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@170 30 genpkg_rules()
erjo@170 31 {
pankso@12982 32 mkdir -p $fs/usr/share
pankso@12982 33 cp -a $install/usr/bin $fs/usr
pankso@12982 34 # --> libmagic
pankso@12982 35 #cp -a $install/usr/lib/*.so* $fs/usr/lib
pankso@12982 36 cp -a $install/usr/share/misc $fs/usr/share
erjo@170 37 }