wok annotate patch/receipt @ rev 12059
removing cp for desktop files. that's all for tonight
author | Samuel Trassare <samuel_trassare@yahoo.com> |
---|---|
date | Wed Mar 07 22:30:33 2012 -0800 (2012-03-07) |
parents | e92ede07eddc |
children | f45a3556e90c |
rev | line source |
---|---|
pankso@26 | 1 # SliTaz package receipt. |
pankso@26 | 2 |
pankso@26 | 3 PACKAGE="patch" |
slaxemulator@5481 | 4 VERSION="2.6.1" |
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 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@26 | 9 WEB_SITE="http://www.gnu.org/software/patch/" |
pankso@26 | 10 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
pankso@26 | 11 |
slaxemulator@10410 | 12 DEPENDS="glibc-base" |
slaxemulator@10410 | 13 BUILD_DEPENDS="gcc" |
slaxemulator@10410 | 14 |
slaxemulator@10410 | 15 # Rules to compile & install the temporary toolchain by Tazwok. |
slaxemulator@10410 | 16 cook_tmp_toolchain() |
slaxemulator@10410 | 17 { |
slaxemulator@10410 | 18 cd $src |
slaxemulator@10410 | 19 ./configure && make && make install |
slaxemulator@10410 | 20 } |
slaxemulator@10410 | 21 |
pankso@26 | 22 # Rules to configure and make the package. |
pankso@26 | 23 compile_rules() |
pankso@26 | 24 { |
pankso@26 | 25 cd $src |
slaxemulator@10090 | 26 ./configure $CONFIGURE_ARGS && |
slaxemulator@10090 | 27 make && make install |
pankso@26 | 28 } |
pankso@26 | 29 |
pankso@26 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@26 | 31 genpkg_rules() |
pankso@26 | 32 { |
pankso@26 | 33 mkdir -p $fs/usr/bin |
gokhlayeh@8207 | 34 cp -a $_pkg/usr/bin/patch $fs/usr/bin |
pankso@26 | 35 } |
pankso@26 | 36 |
pankso@26 | 37 # Prevent erasing busybox... |
pankso@26 | 38 pre_install() |
pankso@26 | 39 { |
pankso@26 | 40 local root |
pankso@26 | 41 root=$1 |
pankso@26 | 42 rm -f $root/usr/bin/patch |
pankso@26 | 43 } |
pascal@303 | 44 |
pascal@303 | 45 post_remove() |
pascal@303 | 46 { |
pascal@303 | 47 ln -s /bin/busybox /usr/bin/patch |
pascal@303 | 48 } |