wok-6.x view patch/receipt @ rev 14356
python-couchdbkit, python-restclient: fix TARBALL
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Apr 17 12:59:13 2013 +0200 (2013-04-17) |
parents | 67722a44366c |
children | 2b9f96603415 |
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 TARBALL="$PACKAGE-$VERSION.tar.xz"
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 }