wok-4.x view patch/receipt @ rev 10472
mercurial: dump to build with ssl support
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed May 25 11:50:33 2011 +0200 (2011-05-25) |
parents | e92ede07eddc |
children | 654ef6aa1962 |
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 }