# HG changeset patch # User Christophe Lincoln # Date 1211110840 -7200 # Node ID 60108769bcbaf685828bf689f02703404dfd0296 # Parent 41331a17ef8a002960a4106b18560638902c370d Add: findutils (build dep for Firefox 3.0) diff -r 41331a17ef8a -r 60108769bcba findutils/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/findutils/receipt Sun May 18 13:40:40 2008 +0200 @@ -0,0 +1,47 @@ +# SliTaz package receipt. + +PACKAGE="findutils" +VERSION="4.4.0" +CATEGORY="utilities" +SHORT_DESC="Utilitie and tools to find/locate." +MAINTAINER="pankso@slitaz.org" +DEPENDS="slitaz-base-files" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://www.gnu.org/software/findutils/" +WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + ./configure \ + --prefix=/usr \ + --libexecdir=/usr/lib/findutils \ + --localstatedir=/var \ + --infodir=/usr/share/info \ + --mandir=/usr/share/man \ + $CONFIGURE_ARGS + make + make DESTDIR=$PWD/_pkg install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/bin + cp -a $_pkg/usr/bin $fs/usr + cp -a $_pkg/usr/lib $fs/usr +} + +# Prevent erasing busybox... +pre_install() +{ + local root + root=$1 + rm -f $root/usr/bin/find +} + +post_remove() +{ + ln -s /bin/busybox /usr/bin/find +}