wok-current view patch/receipt @ rev 25411
updated winetricks (20200412 -> 20220411)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Aug 04 07:24:24 2022 +0100 (2022-08-04) |
parents | 9cc63da7035a |
children | 5926178cd6fa |
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 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - ${WGET_URL%/*} 2>/dev/null | \
20 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 ./configure $CONFIGURE_ARGS &&
27 make &&
28 make install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/bin
35 cp -a $install/usr/bin/patch $fs/usr/bin
36 }
38 # Prevent erasing busybox...
39 pre_install()
40 {
41 rm -f "$1/usr/bin/patch"
42 }
44 post_remove()
45 {
46 ln -s /bin/busybox "$1/usr/bin/patch"
47 }