wok-6.x view patch/receipt @ rev 15687

Remove debootsrap
author Stanislas Leduc <shann@slitaz.org>
date Sat Dec 21 07:42:27 2013 +0100 (2013-12-21)
parents f45a3556e90c
children 7d5c0cb4336a
line source
1 # SliTaz package receipt.
3 PACKAGE="patch"
4 VERSION="2.7"
5 CATEGORY="utilities"
6 SHORT_DESC="Utilitie to patch file with diff file."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="http://www.gnu.org/software/patch/"
11 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
13 DEPENDS="glibc-base"
14 BUILD_DEPENDS="gcc"
16 # Rules to compile & install the temporary toolchain by Tazwok.
17 cook_tmp_toolchain()
18 {
19 cd $src
20 ./configure && make && make install
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $src
27 ./configure $CONFIGURE_ARGS &&
28 make && make install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/bin
35 cp -a $install/usr/bin/patch $fs/usr/bin
36 }
38 # Prevent erasing busybox...
39 pre_install()
40 {
41 local root
42 root=$1
43 rm -f $root/usr/bin/patch
44 }
46 post_remove()
47 {
48 ln -s /bin/busybox /usr/bin/patch
49 }