wok view patch/receipt @ rev 9710
gcc-lib-base: remove gdb python file from lib (fix ldconfig error)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun May 08 22:12:43 2011 +0200 (2011-05-08) |
parents | 86e8692df3d3 |
children | e92ede07eddc |
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 DEPENDS="glibc-base"
9 BUILD_DEPENDS="gcc"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://www.gnu.org/software/patch/"
12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 ./configure && make && make install
19 }
21 # Rules to gen a SliTaz package suitable for Tazpkg.
22 genpkg_rules()
23 {
24 mkdir -p $fs/usr/bin
25 cp -a $_pkg/usr/bin/patch $fs/usr/bin
26 }
28 # Prevent erasing busybox...
29 pre_install()
30 {
31 local root
32 root=$1
33 rm -f $root/usr/bin/patch
34 }
36 post_remove()
37 {
38 ln -s /bin/busybox /usr/bin/patch
39 }