wok-current annotate patch/receipt @ rev 4458
mplayer: --disable-smb --disable-ftp --disable-openal --disable-faac + clean-up
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Nov 08 16:59:03 2009 +0100 (2009-11-08) |
parents | cf22fee17710 |
children | 44edb3ecc60c |
rev | line source |
---|---|
pankso@26 | 1 # SliTaz package receipt. |
pankso@26 | 2 |
pankso@26 | 3 PACKAGE="patch" |
pankso@26 | 4 VERSION="2.5.4" |
pankso@211 | 5 CATEGORY="utilities" |
pankso@26 | 6 SHORT_DESC="Utilitie to patch file with diff file." |
pankso@26 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@26 | 8 DEPENDS="" |
pankso@26 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@26 | 10 WEB_SITE="http://www.gnu.org/software/patch/" |
pankso@26 | 11 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
pankso@26 | 12 |
pankso@26 | 13 # Rules to configure and make the package. |
pankso@26 | 14 compile_rules() |
pankso@26 | 15 { |
pankso@26 | 16 cd $src |
pankso@26 | 17 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pankso@26 | 18 --mandir=/usr/share/man $CONFIGURE_ARGS |
pankso@26 | 19 make |
pankso@26 | 20 } |
pankso@26 | 21 |
pankso@26 | 22 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@26 | 23 genpkg_rules() |
pankso@26 | 24 { |
pankso@26 | 25 mkdir -p $fs/usr/bin |
pankso@26 | 26 cp -a $src/patch $fs/usr/bin |
pankso@26 | 27 strip -s $fs/usr/bin/* |
pankso@26 | 28 } |
pankso@26 | 29 |
pankso@26 | 30 # Prevent erasing busybox... |
pankso@26 | 31 pre_install() |
pankso@26 | 32 { |
pankso@26 | 33 local root |
pankso@26 | 34 root=$1 |
pankso@26 | 35 rm -f $root/usr/bin/patch |
pankso@26 | 36 } |
pascal@303 | 37 |
pascal@303 | 38 post_remove() |
pascal@303 | 39 { |
pascal@303 | 40 ln -s /bin/busybox /usr/bin/patch |
pascal@303 | 41 } |