wok-6.x diff pbzip2/receipt @ rev 23975

Up matio (1.5.18), mutt (1.14.7), nasm (2.15.05), net-snmp (5.9), nethack (3.6.6)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Oct 28 17:24:13 2020 +0000 (2020-10-28)
parents 826c1bab582b
children 15650f5d595b
line diff
     1.1 --- a/pbzip2/receipt	Wed Apr 10 13:37:55 2019 +0200
     1.2 +++ b/pbzip2/receipt	Wed Oct 28 17:24:13 2020 +0000
     1.3 @@ -25,3 +25,14 @@
     1.4  	mkdir -p $fs/usr/bin
     1.5  	cp $src/pbzip2 $fs/usr/bin
     1.6  }
     1.7 +
     1.8 +pre_remove()
     1.9 +{
    1.10 +	sed -i '/bzip2=pbzip2/d' $1/etc/profile
    1.11 +}
    1.12 +
    1.13 +post_install()
    1.14 +{
    1.15 +	grep -qs 'bzip2=pbzip2' $1/etc/profile ||
    1.16 +	echo 'alias bzip2=pbzip2' >> $1/etc/profile
    1.17 +}