wok-6.x annotate patch/receipt @ rev 23829

syslinux/isohybrid: remove Apple partitions
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun May 31 10:17:28 2020 +0000 (2020-05-31)
parents 9e01bc6321ea
children 71360a13cd94
rev   line source
pankso@26 1 # SliTaz package receipt.
pankso@26 2
pankso@26 3 PACKAGE="patch"
Hans-G?nter@21662 4 VERSION="2.7.6"
pankso@211 5 CATEGORY="utilities"
Hans-G?nter@21662 6 SHORT_DESC="Utility to patch file with diff file."
pankso@26 7 MAINTAINER="pankso@slitaz.org"
pascal@14999 8 LICENSE="GPL3"
Hans-G?nter@21662 9 WEB_SITE="https://www.gnu.org/software/patch/patch.html"
Hans-G?nter@21662 10
samuel_trassare@13486 11 TARBALL="$PACKAGE-$VERSION.tar.xz"
pankso@26 12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
Hans-G?nter@21662 13
pankso@16310 14 HOST_ARCH="i486 arm"
pankso@26 15
pankso@26 16 # Rules to configure and make the package.
pankso@26 17 compile_rules()
pankso@26 18 {
slaxemulator@10090 19 ./configure $CONFIGURE_ARGS &&
Hans-G?nter@21662 20 make &&
Hans-G?nter@21662 21 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 {
pascal@18730 34 rm -f "$1/usr/bin/patch"
pankso@26 35 }
pascal@303 36
pascal@303 37 post_remove()
pascal@303 38 {
pascal@18730 39 ln -s /bin/busybox "$1/usr/bin/patch"
pascal@303 40 }