wok view grep/receipt @ rev 25773

cookutils: fix svg compressor
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 13 16:25:52 2024 +0000 (2 months ago)
parents 25f321eee88e
children
line source
1 # SliTaz package receipt.
3 PACKAGE="grep"
4 VERSION="3.7"
5 CATEGORY="development"
6 SHORT_DESC="GNU Global Regular Expression Print."
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://www.gnu.org/software/grep/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
14 SUGGESTED="grep-lang"
15 DEPENDS="pcre"
16 BUILD_DEPENDS="pcre-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://ftp.gnu.org/gnu/$PACKAGE/ 2>/dev/null | \
22 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 ./configure $CONFIGURE_ARGS &&
29 make &&
30 make install
32 find $install/usr/share/man -type f -exec gzip -9 \{\} \;
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 cook_copy_folders bin
39 }
41 # Pre and post install commands for Tazpkg.
42 post_install()
43 {
44 for i in grep egrep fgrep
45 do
46 [ "$(readlink "$1/bin/$i")" = "busybox" ] &&
47 ln -sf "../usr/bin/$i" "$1/bin/$i"
48 done
49 }
51 pre_remove()
52 {
53 for i in grep egrep fgrep
54 do
55 ln -sf busybox "$1/bin/$i"
56 done
57 }