wok view patch/receipt @ rev 10252
Add safecopy.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sat May 21 03:53:34 2011 +0000 (2011-05-21) |
parents | 02bbaa9d12ba |
children | 67722a44366c |
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="glibc-base"
9 BUILD_DEPENDS="gcc"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://www.gnu.org/software/patch/"
12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 ./configure $CONFIGURE_ARGS &&
19 make && make install
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
25 mkdir -p $fs/usr/bin
26 cp -a $_pkg/usr/bin/patch $fs/usr/bin
27 }
29 # Prevent erasing busybox...
30 pre_install()
31 {
32 local root
33 root=$1
34 rm -f $root/usr/bin/patch
35 }
37 post_remove()
38 {
39 ln -s /bin/busybox /usr/bin/patch
40 }