wok-current rev 24788

grep: add post_install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 21 09:31:32 2022 +0000 (2022-03-21)
parents 72421749b88c
children 8b5c3df6e968
files grep/receipt jack1/receipt lxqt-panel/receipt
line diff
     1.1 --- a/grep/receipt	Mon Mar 21 09:17:44 2022 +0100
     1.2 +++ b/grep/receipt	Mon Mar 21 09:31:32 2022 +0000
     1.3 @@ -38,6 +38,15 @@
     1.4  	cook_copy_folders	bin
     1.5  }
     1.6  
     1.7 +post_install()
     1.8 +{
     1.9 +	for i in grep egrep fgrep
    1.10 +	  do
    1.11 +		[ "$(readlink "$1/bin/$i")" = "busybox" ] &&
    1.12 +		rm -f "$1/bin/$i"
    1.13 +	  done
    1.14 +}
    1.15 +
    1.16  post_remove()
    1.17  {
    1.18  	for i in grep egrep fgrep
     2.1 --- a/jack1/receipt	Mon Mar 21 09:17:44 2022 +0100
     2.2 +++ b/jack1/receipt	Mon Mar 21 09:31:32 2022 +0000
     2.3 @@ -19,6 +19,13 @@
     2.4  
     2.5  HOST_ARCH="i486 arm"
     2.6  
     2.7 +# What is the latest version available today?
     2.8 +current_version()
     2.9 +{
    2.10 +	wget -O - ${WGET_URL%/*} 2>/dev/null | \
    2.11 +	sed '/archive\/v[0-9]/!d;/tar/!d;s|.*archive/v||;s|.tar.*||;q'
    2.12 +}
    2.13 +
    2.14  # Rules to configure and make the package.
    2.15  compile_rules()
    2.16  {
    2.17 @@ -31,7 +38,6 @@
    2.18  	make install DESTDIR=$DESTDIR &&
    2.19  
    2.20  	install -Dm644 $src/jack/jslist.h $install/usr/include/jack/jslist.h
    2.21 -# -j 1
    2.22  }
    2.23  
    2.24  # Rules to gen a SliTaz package suitable for Tazpkg.
     3.1 --- a/lxqt-panel/receipt	Mon Mar 21 09:17:44 2022 +0100
     3.2 +++ b/lxqt-panel/receipt	Mon Mar 21 09:31:32 2022 +0000
     3.3 @@ -23,6 +23,7 @@
     3.4  	menu-cache-dev qmake Qt4-dev xorg-libX11-dev xorg-libXcomposite-dev
     3.5  	xorg-libXdamage-dev xorg-libXrender-dev "
     3.6  
     3.7 +# What is the latest version available today?
     3.8  current_version()
     3.9  {
    3.10  	wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \