wok annotate findutils/receipt @ rev 990

Up: pidgin (2.4.3)
author Christophe Lincoln <pankso@slitaz.org>
date Fri Jul 04 11:10:27 2008 +0200 (2008-07-04)
parents
children 71a61ee766c9
rev   line source
pankso@839 1 # SliTaz package receipt.
pankso@839 2
pankso@839 3 PACKAGE="findutils"
pankso@839 4 VERSION="4.4.0"
pankso@839 5 CATEGORY="utilities"
pankso@839 6 SHORT_DESC="Utilitie and tools to find/locate."
pankso@839 7 MAINTAINER="pankso@slitaz.org"
pankso@839 8 DEPENDS="slitaz-base-files"
pankso@839 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@839 10 WEB_SITE="http://www.gnu.org/software/findutils/"
pankso@839 11 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
pankso@839 12
pankso@839 13 # Rules to configure and make the package.
pankso@839 14 compile_rules()
pankso@839 15 {
pankso@839 16 cd $src
pankso@839 17 ./configure \
pankso@839 18 --prefix=/usr \
pankso@839 19 --libexecdir=/usr/lib/findutils \
pankso@839 20 --localstatedir=/var \
pankso@839 21 --infodir=/usr/share/info \
pankso@839 22 --mandir=/usr/share/man \
pankso@839 23 $CONFIGURE_ARGS
pankso@839 24 make
pankso@839 25 make DESTDIR=$PWD/_pkg install
pankso@839 26 }
pankso@839 27
pankso@839 28 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@839 29 genpkg_rules()
pankso@839 30 {
pankso@839 31 mkdir -p $fs/usr/bin
pankso@839 32 cp -a $_pkg/usr/bin $fs/usr
pankso@839 33 cp -a $_pkg/usr/lib $fs/usr
pankso@839 34 }
pankso@839 35
pankso@839 36 # Prevent erasing busybox...
pankso@839 37 pre_install()
pankso@839 38 {
pankso@839 39 local root
pankso@839 40 root=$1
pankso@839 41 rm -f $root/usr/bin/find
pankso@839 42 }
pankso@839 43
pankso@839 44 post_remove()
pankso@839 45 {
pankso@839 46 ln -s /bin/busybox /usr/bin/find
pankso@839 47 }