wok-current annotate findutils/receipt @ rev 24547

updated findutils (4.7.0 -> 4.9.0)
author Hans-G?nter Theisgen
date Fri Feb 25 07:40:37 2022 +0100 (2022-02-25)
parents 71360a13cd94
children 5926178cd6fa
rev   line source
pankso@839 1 # SliTaz package receipt.
pankso@839 2
pankso@839 3 PACKAGE="findutils"
Hans-G?nter@24547 4 VERSION="4.9.0"
pankso@839 5 CATEGORY="utilities"
Hans-G?nter@22760 6 SHORT_DESC="GNU utilities and tools to find and locate."
pankso@839 7 MAINTAINER="pankso@slitaz.org"
pascal@14999 8 LICENSE="GPL3"
Hans-G?nter@22760 9 WEB_SITE="https://www.gnu.org/software/findutils/"
Hans-G?nter@22760 10
Hans-G?nter@22760 11 TARBALL="$PACKAGE-$VERSION.tar.xz"
pankso@839 12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
pankso@839 13
pascal@14999 14 DEPENDS="glibc-base slitaz-base-files"
pascal@14999 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@839 23 # Rules to configure and make the package.
pankso@839 24 compile_rules()
pankso@839 25 {
Hans-G?nter@22760 26 ./configure \
Hans-G?nter@22760 27 --prefix=/usr \
Hans-G?nter@22760 28 --libexecdir=/usr/lib/findutils \
Hans-G?nter@22760 29 --localstatedir=/var \
Hans-G?nter@22760 30 --infodir=/usr/share/info \
Hans-G?nter@22760 31 --mandir=/usr/share/man \
pankso@2741 32 $CONFIGURE_ARGS &&
pankso@2741 33 make &&
pascal@14999 34 make DESTDIR=$DESTDIR install
pankso@839 35 }
pankso@839 36
pankso@839 37 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@839 38 genpkg_rules()
pankso@839 39 {
Hans-G?nter@24547 40 cook_copy_folders bin
Hans-G?nter@24547 41 cook_copy_folders lib
pankso@839 42 }
pankso@839 43
rcx@3666 44 # Remove Busybox symlink before installing
pankso@839 45 pre_install()
pankso@839 46 {
pascal@18730 47 rm -f "$1/usr/bin/find"
pascal@18730 48 rm -f "$1/usr/bin/xargs"
pankso@839 49 }
pankso@839 50
pankso@839 51 post_remove()
pankso@839 52 {
pankso@839 53 ln -s /bin/busybox /usr/bin/find
slaxemulator@6258 54 ln -s /bin/busybox /usr/bin/xargs
pankso@839 55 }