wok-current view findutils/receipt @ rev 24395
created recipe for py3k-distutils-extra
author | Hans-G?nter Theisgen |
---|---|
date | Tue Feb 08 10:23:22 2022 +0100 (2022-02-08) |
parents | 3385f0b3d5af |
children | 714bf3b9649f |
line source
1 # SliTaz package receipt.
3 PACKAGE="findutils"
4 VERSION="4.7.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 mkdir -p $fs/usr/bin
42 cp -a $install/usr/bin $fs/usr
43 cp -a $install/usr/lib $fs/usr
44 }
46 # Remove Busybox symlink before installing
47 pre_install()
48 {
49 rm -f "$1/usr/bin/find"
50 rm -f "$1/usr/bin/xargs"
51 }
53 post_remove()
54 {
55 ln -s /bin/busybox /usr/bin/find
56 ln -s /bin/busybox /usr/bin/xargs
57 }