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