wok annotate findutils/receipt @ rev 2741

Up: findutils (4.4.1)
author Christophe Lincoln <pankso@slitaz.org>
date Sun Apr 26 00:06:45 2009 +0200 (2009-04-26)
parents 71a61ee766c9
children f779db80fe51
rev   line source
pankso@839 1 # SliTaz package receipt.
pankso@839 2
pankso@839 3 PACKAGE="findutils"
pankso@2741 4 VERSION="4.4.1"
pankso@839 5 CATEGORY="utilities"
taziden@1972 6 SHORT_DESC="Utilities 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@2741 23 $CONFIGURE_ARGS &&
pankso@2741 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@2741 39 rm -f $1/usr/bin/find
pankso@839 40 }
pankso@839 41
pankso@839 42 post_remove()
pankso@839 43 {
pankso@839 44 ln -s /bin/busybox /usr/bin/find
pankso@839 45 }