wok annotate patch/receipt @ rev 25281
updated rinetd again (0.62 -> 0.73)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Jul 18 15:22:44 2022 +0100 (2022-07-18) |
parents | 9cc63da7035a |
children | d79ed38ace18 |
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 |
pascal@24336 | 16 # What is the latest version available today? |
pascal@24336 | 17 current_version() |
pascal@24336 | 18 { |
pascal@24336 | 19 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24336 | 20 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24336 | 21 } |
pascal@24336 | 22 |
pankso@26 | 23 # Rules to configure and make the package. |
pankso@26 | 24 compile_rules() |
pankso@26 | 25 { |
slaxemulator@10090 | 26 ./configure $CONFIGURE_ARGS && |
Hans-G?nter@21662 | 27 make && |
Hans-G?nter@21662 | 28 make install |
pankso@26 | 29 } |
pankso@26 | 30 |
pankso@26 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@26 | 32 genpkg_rules() |
pankso@26 | 33 { |
pankso@26 | 34 mkdir -p $fs/usr/bin |
pascal@14999 | 35 cp -a $install/usr/bin/patch $fs/usr/bin |
pankso@26 | 36 } |
pankso@26 | 37 |
pankso@26 | 38 # Prevent erasing busybox... |
pankso@26 | 39 pre_install() |
pankso@26 | 40 { |
pascal@18730 | 41 rm -f "$1/usr/bin/patch" |
pankso@26 | 42 } |
pascal@303 | 43 |
pascal@303 | 44 post_remove() |
pascal@303 | 45 { |
pascal@18730 | 46 ln -s /bin/busybox "$1/usr/bin/patch" |
pascal@303 | 47 } |