wok-6.x view patch/receipt @ rev 11033
Up: shared-mime-info to 0.91.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun Oct 16 07:18:25 2011 +0000 (2011-10-16) |
parents | e92ede07eddc |
children | f45a3556e90c |
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 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.gnu.org/software/patch/"
10 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
12 DEPENDS="glibc-base"
13 BUILD_DEPENDS="gcc"
15 # Rules to compile & install the temporary toolchain by Tazwok.
16 cook_tmp_toolchain()
17 {
18 cd $src
19 ./configure && make && make install
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 cd $src
26 ./configure $CONFIGURE_ARGS &&
27 make && make install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/bin
34 cp -a $_pkg/usr/bin/patch $fs/usr/bin
35 }
37 # Prevent erasing busybox...
38 pre_install()
39 {
40 local root
41 root=$1
42 rm -f $root/usr/bin/patch
43 }
45 post_remove()
46 {
47 ln -s /bin/busybox /usr/bin/patch
48 }