wok view patch/receipt @ rev 13922

cssed, gnome-games: try to fix build
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Jan 26 00:50:39 2013 +0000 (2013-01-26)
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 }