wok-stable view patch/receipt @ rev 354
Up: slitaz-tools (1.9) with Tazlito GUI
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Mar 07 00:01:58 2008 +0100 (2008-03-07) |
parents | cf22fee17710 |
children | 44edb3ecc60c |
line source
1 # SliTaz package receipt.
3 PACKAGE="patch"
4 VERSION="2.5.4"
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 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
25 mkdir -p $fs/usr/bin
26 cp -a $src/patch $fs/usr/bin
27 strip -s $fs/usr/bin/*
28 }
30 # Prevent erasing busybox...
31 pre_install()
32 {
33 local root
34 root=$1
35 rm -f $root/usr/bin/patch
36 }
38 post_remove()
39 {
40 ln -s /bin/busybox /usr/bin/patch
41 }