wok annotate patch/receipt @ rev 20675

iron: update /usr/bin/iron symlink
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jan 24 22:11:16 2019 +0100 (2019-01-24)
parents 3c98163930bb
children 9cc63da7035a
rev   line source
pankso@26 1 # SliTaz package receipt.
pankso@26 2
pankso@26 3 PACKAGE="patch"
devl547@17587 4 VERSION="2.7.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"
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
pankso@26 14 # Rules to configure and make the package.
pankso@26 15 compile_rules()
pankso@26 16 {
slaxemulator@10090 17 ./configure $CONFIGURE_ARGS &&
slaxemulator@10090 18 make && make install
pankso@26 19 }
pankso@26 20
pankso@26 21 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@26 22 genpkg_rules()
pankso@26 23 {
pankso@26 24 mkdir -p $fs/usr/bin
pascal@14999 25 cp -a $install/usr/bin/patch $fs/usr/bin
pankso@26 26 }
pankso@26 27
pankso@26 28 # Prevent erasing busybox...
pankso@26 29 pre_install()
pankso@26 30 {
pascal@18730 31 rm -f "$1/usr/bin/patch"
pankso@26 32 }
pascal@303 33
pascal@303 34 post_remove()
pascal@303 35 {
pascal@18730 36 ln -s /bin/busybox "$1/usr/bin/patch"
pascal@303 37 }