wok-stable view patch/receipt @ rev 5862

busybox: remove bootchartd
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jul 19 16:34:13 2010 +0200 (2010-07-19)
parents 44edb3ecc60c
children 86e8692df3d3
line source
1 # SliTaz package receipt.
3 PACKAGE="patch"
4 VERSION="2.6.1"
5 CATEGORY="utilities"
6 SHORT_DESC="Utilitie to patch file with diff file."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS=""
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.gnu.org/software/patch/"
11 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 cd $src
17 ./configure --prefix=/usr --infodir=/usr/share/info \
18 --mandir=/usr/share/man $CONFIGURE_ARGS &&
19 make &&
20 make prefix=$PWD/_pkg install
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $fs/usr/bin
27 cp -a $_pkg/bin/patch $fs/usr/bin
28 strip -s $fs/usr/bin/*
29 }
31 # Prevent erasing busybox...
32 pre_install()
33 {
34 local root
35 root=$1
36 rm -f $root/usr/bin/patch
37 }
39 post_remove()
40 {
41 ln -s /bin/busybox /usr/bin/patch
42 }