wok annotate patch/receipt @ rev 16310
ARM: add patch
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Apr 09 09:11:44 2014 +0200 (2014-04-09) |
parents | 2b9f96603415 |
children | 083f88526785 |
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@16310 | 12 HOST_ARCH="i486 arm" |
pankso@26 | 13 |
slaxemulator@10410 | 14 DEPENDS="glibc-base" |
slaxemulator@10410 | 15 BUILD_DEPENDS="gcc" |
slaxemulator@10410 | 16 |
pankso@26 | 17 # Rules to configure and make the package. |
pankso@26 | 18 compile_rules() |
pankso@26 | 19 { |
slaxemulator@10090 | 20 ./configure $CONFIGURE_ARGS && |
slaxemulator@10090 | 21 make && make install |
pankso@26 | 22 } |
pankso@26 | 23 |
pankso@26 | 24 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@26 | 25 genpkg_rules() |
pankso@26 | 26 { |
pankso@26 | 27 mkdir -p $fs/usr/bin |
pascal@14999 | 28 cp -a $install/usr/bin/patch $fs/usr/bin |
pankso@26 | 29 } |
pankso@26 | 30 |
pankso@26 | 31 # Prevent erasing busybox... |
pankso@26 | 32 pre_install() |
pankso@26 | 33 { |
pankso@26 | 34 local root |
pankso@26 | 35 root=$1 |
pankso@26 | 36 rm -f $root/usr/bin/patch |
pankso@26 | 37 } |
pascal@303 | 38 |
pascal@303 | 39 post_remove() |
pascal@303 | 40 { |
pascal@303 | 41 ln -s /bin/busybox /usr/bin/patch |
pascal@303 | 42 } |