wok-6.x annotate findutils/receipt @ rev 24500

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 19 19:01:32 2022 +0000 (2022-02-19)
parents 3385f0b3d5af
children 714bf3b9649f
rev   line source
pankso@839 1 # SliTaz package receipt.
pankso@839 2
pankso@839 3 PACKAGE="findutils"
Hans-G?nter@22760 4 VERSION="4.7.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 {
pankso@839 40 mkdir -p $fs/usr/bin
Hans-G?nter@22760 41
Hans-G?nter@22760 42 cp -a $install/usr/bin $fs/usr
Hans-G?nter@22760 43 cp -a $install/usr/lib $fs/usr
pankso@839 44 }
pankso@839 45
rcx@3666 46 # Remove Busybox symlink before installing
pankso@839 47 pre_install()
pankso@839 48 {
pascal@18730 49 rm -f "$1/usr/bin/find"
pascal@18730 50 rm -f "$1/usr/bin/xargs"
pankso@839 51 }
pankso@839 52
pankso@839 53 post_remove()
pankso@839 54 {
pankso@839 55 ln -s /bin/busybox /usr/bin/find
slaxemulator@6258 56 ln -s /bin/busybox /usr/bin/xargs
pankso@839 57 }