wok rev 839

Add: findutils (build dep for Firefox 3.0)
author Christophe Lincoln <pankso@slitaz.org>
date Sun May 18 13:40:40 2008 +0200 (2008-05-18)
parents 41331a17ef8a
children a7c958bdba6f
files findutils/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/findutils/receipt	Sun May 18 13:40:40 2008 +0200
     1.3 @@ -0,0 +1,47 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="findutils"
     1.7 +VERSION="4.4.0"
     1.8 +CATEGORY="utilities"
     1.9 +SHORT_DESC="Utilitie and tools to find/locate."
    1.10 +MAINTAINER="pankso@slitaz.org"
    1.11 +DEPENDS="slitaz-base-files"
    1.12 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.13 +WEB_SITE="http://www.gnu.org/software/findutils/"
    1.14 +WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
    1.15 +
    1.16 +# Rules to configure and make the package.
    1.17 +compile_rules()
    1.18 +{
    1.19 +	cd $src
    1.20 +	./configure \
    1.21 +		--prefix=/usr \
    1.22 +		--libexecdir=/usr/lib/findutils \
    1.23 +		--localstatedir=/var \
    1.24 +		--infodir=/usr/share/info \
    1.25 +		--mandir=/usr/share/man \
    1.26 +		$CONFIGURE_ARGS
    1.27 +	make
    1.28 +	make DESTDIR=$PWD/_pkg install
    1.29 +}
    1.30 +
    1.31 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.32 +genpkg_rules()
    1.33 +{
    1.34 +	mkdir -p $fs/usr/bin
    1.35 +	cp -a $_pkg/usr/bin $fs/usr
    1.36 +	cp -a $_pkg/usr/lib $fs/usr
    1.37 +}
    1.38 +
    1.39 +# Prevent erasing busybox...
    1.40 +pre_install()
    1.41 +{
    1.42 +	local root
    1.43 +	root=$1
    1.44 +	rm -f $root/usr/bin/find
    1.45 +}
    1.46 +
    1.47 +post_remove()
    1.48 +{
    1.49 +	ln -s /bin/busybox /usr/bin/find
    1.50 +}