wok-6.x view findutils/receipt @ rev 24776

jack1: added build dependency gcc83
author Hans-G?nter Theisgen
date Sat Mar 19 17:48:51 2022 +0100 (2022-03-19)
parents 71360a13cd94
children
line source
1 # SliTaz package receipt.
3 PACKAGE="findutils"
4 VERSION="4.9.0"
5 CATEGORY="utilities"
6 SHORT_DESC="GNU utilities and tools to find and locate."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://www.gnu.org/software/findutils/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
14 DEPENDS="glibc-base slitaz-base-files"
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 \
27 --prefix=/usr \
28 --libexecdir=/usr/lib/findutils \
29 --localstatedir=/var \
30 --infodir=/usr/share/info \
31 --mandir=/usr/share/man \
32 $CONFIGURE_ARGS &&
33 make &&
34 make DESTDIR=$DESTDIR install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 cook_copy_folders bin
41 cook_copy_folders lib
42 }
44 # Remove Busybox symlink before installing
45 pre_install()
46 {
47 rm -f "$1/usr/bin/find"
48 rm -f "$1/usr/bin/xargs"
49 }
51 post_remove()
52 {
53 ln -s /bin/busybox /usr/bin/find
54 ln -s /bin/busybox /usr/bin/xargs
55 }