wok annotate patch/receipt @ rev 13667
ccid: add RSA_SecurID_getpasswd & Kobil_mIDentity_switch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Nov 24 11:33:48 2012 +0100 (2012-11-24) |
parents | 67722a44366c |
children | 2b9f96603415 |
rev | line source |
---|---|
pankso@26 | 1 # SliTaz package receipt. |
pankso@26 | 2 |
pankso@26 | 3 PACKAGE="patch" |
samuel_trassare@13486 | 4 VERSION="2.7" |
pankso@211 | 5 CATEGORY="utilities" |
pankso@26 | 6 SHORT_DESC="Utilitie to patch file with diff file." |
pankso@26 | 7 MAINTAINER="pankso@slitaz.org" |
samuel_trassare@13486 | 8 TARBALL="$PACKAGE-$VERSION.tar.xz" |
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 } |