wok-current view patch/receipt @ rev 7886
Up: git to 1.7.3.5.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Fri Jan 07 04:35:43 2011 +0000 (2011-01-07) |
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 }