wok annotate patch/receipt @ rev 15544
Up: firefox-langpack-pt_PT (17.0.11esr)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Sun Nov 24 17:36:37 2013 +0100 (2013-11-24) |
parents | f45a3556e90c |
children | 7d5c0cb4336a |
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" |
pascal@14999 | 8 LICENSE="GPL3" |
samuel_trassare@13486 | 9 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pankso@26 | 10 WEB_SITE="http://www.gnu.org/software/patch/" |
pankso@26 | 11 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
pankso@26 | 12 |
slaxemulator@10410 | 13 DEPENDS="glibc-base" |
slaxemulator@10410 | 14 BUILD_DEPENDS="gcc" |
slaxemulator@10410 | 15 |
slaxemulator@10410 | 16 # Rules to compile & install the temporary toolchain by Tazwok. |
slaxemulator@10410 | 17 cook_tmp_toolchain() |
slaxemulator@10410 | 18 { |
slaxemulator@10410 | 19 cd $src |
slaxemulator@10410 | 20 ./configure && make && make install |
slaxemulator@10410 | 21 } |
slaxemulator@10410 | 22 |
pankso@26 | 23 # Rules to configure and make the package. |
pankso@26 | 24 compile_rules() |
pankso@26 | 25 { |
pankso@26 | 26 cd $src |
slaxemulator@10090 | 27 ./configure $CONFIGURE_ARGS && |
slaxemulator@10090 | 28 make && make install |
pankso@26 | 29 } |
pankso@26 | 30 |
pankso@26 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@26 | 32 genpkg_rules() |
pankso@26 | 33 { |
pankso@26 | 34 mkdir -p $fs/usr/bin |
pascal@14999 | 35 cp -a $install/usr/bin/patch $fs/usr/bin |
pankso@26 | 36 } |
pankso@26 | 37 |
pankso@26 | 38 # Prevent erasing busybox... |
pankso@26 | 39 pre_install() |
pankso@26 | 40 { |
pankso@26 | 41 local root |
pankso@26 | 42 root=$1 |
pankso@26 | 43 rm -f $root/usr/bin/patch |
pankso@26 | 44 } |
pascal@303 | 45 |
pascal@303 | 46 post_remove() |
pascal@303 | 47 { |
pascal@303 | 48 ln -s /bin/busybox /usr/bin/patch |
pascal@303 | 49 } |