wok-current annotate grep/receipt @ rev 25449
BootProg/boot32.asm: floppy chs support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Sep 12 16:35:46 2022 +0000 (2022-09-12) |
parents | 8b5c3df6e968 |
children |
rev | line source |
---|---|
paul@7100 | 1 # SliTaz package receipt. |
paul@7100 | 2 |
paul@7100 | 3 PACKAGE="grep" |
Hans-G?nter@24624 | 4 VERSION="3.7" |
paul@7100 | 5 CATEGORY="development" |
paul@7100 | 6 SHORT_DESC="GNU Global Regular Expression Print." |
paul@7100 | 7 MAINTAINER="paul@slitaz.org" |
pascal@14999 | 8 LICENSE="GPL3" |
Hans-G?nter@21000 | 9 WEB_SITE="https://www.gnu.org/software/grep/" |
Hans-G?nter@21000 | 10 |
slaxemulator@11681 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
paul@7100 | 12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
paul@7100 | 13 |
Hans-G?nter@24624 | 14 SUGGESTED="grep-lang" |
slaxemulator@11681 | 15 DEPENDS="pcre" |
slaxemulator@11681 | 16 BUILD_DEPENDS="pcre-dev" |
slaxemulator@11681 | 17 |
pascal@24336 | 18 # What is the latest version available today? |
pascal@24336 | 19 current_version() |
pascal@24336 | 20 { |
pascal@24336 | 21 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24336 | 22 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24336 | 23 } |
pascal@24336 | 24 |
paul@7100 | 25 # Rules to configure and make the package. |
paul@7100 | 26 compile_rules() |
paul@7100 | 27 { |
al@18741 | 28 ./configure $CONFIGURE_ARGS && |
Hans-G?nter@24624 | 29 make && |
Hans-G?nter@21000 | 30 make install |
al@19222 | 31 |
al@19222 | 32 find $install/usr/share/man -type f -exec gzip -9 \{\} \; |
paul@7100 | 33 } |
paul@7100 | 34 |
paul@7100 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@7100 | 36 genpkg_rules() |
paul@7100 | 37 { |
Hans-G?nter@24624 | 38 cook_copy_folders bin |
paul@7100 | 39 } |
paul@7100 | 40 |
pascal@24794 | 41 # Pre and post install commands for Tazpkg. |
pascal@24788 | 42 post_install() |
pascal@24788 | 43 { |
pascal@24788 | 44 for i in grep egrep fgrep |
pascal@24788 | 45 do |
pascal@24788 | 46 [ "$(readlink "$1/bin/$i")" = "busybox" ] && |
pascal@24789 | 47 ln -sf "../usr/bin/$i" "$1/bin/$i" |
pascal@24788 | 48 done |
pascal@24788 | 49 } |
pascal@24788 | 50 |
pascal@24794 | 51 pre_remove() |
slaxemulator@7187 | 52 { |
Hans-G?nter@22880 | 53 for i in grep egrep fgrep |
Hans-G?nter@22880 | 54 do |
al@18999 | 55 ln -sf busybox "$1/bin/$i" |
Hans-G?nter@22880 | 56 done |
slaxemulator@7187 | 57 } |