wok-6.x view patch/receipt @ rev 21815

ffmpeg-dev: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Aug 19 10:41:53 2019 +0200 (2019-08-19)
parents 9e01bc6321ea
children 71360a13cd94
line source
1 # SliTaz package receipt.
3 PACKAGE="patch"
4 VERSION="2.7.6"
5 CATEGORY="utilities"
6 SHORT_DESC="Utility to patch file with diff file."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://www.gnu.org/software/patch/patch.html"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
14 HOST_ARCH="i486 arm"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 ./configure $CONFIGURE_ARGS &&
20 make &&
21 make install
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr/bin
28 cp -a $install/usr/bin/patch $fs/usr/bin
29 }
31 # Prevent erasing busybox...
32 pre_install()
33 {
34 rm -f "$1/usr/bin/patch"
35 }
37 post_remove()
38 {
39 ln -s /bin/busybox "$1/usr/bin/patch"
40 }