wok-current diff mhwaveedit/receipt @ rev 25727

Add miss stuff folder for libxml++, dbus-c++
author Stanislas Leduc <shann@slitaz.org>
date Tue Nov 05 13:46:37 2024 +0000 (12 days ago)
parents ee53899c6189
children
line diff
     1.1 --- a/mhwaveedit/receipt	Wed Jul 07 10:35:01 2021 +0000
     1.2 +++ b/mhwaveedit/receipt	Tue Nov 05 13:46:37 2024 +0000
     1.3 @@ -11,11 +11,13 @@
     1.4  TARBALL="$PACKAGE-$VERSION.tar.gz"
     1.5  WGET_URL="${WEB_SITE}archive/v$VERSION/$TARBALL"
     1.6  
     1.7 -DEPENDS="alsa-lib libxml2 expat gtk+ xorg-libX11 xorg-libXau \
     1.8 -	xorg-libXcomposite xorg-libXcursor xorg-libXdmcp xorg-libXext \
     1.9 -	xorg-libXfixes xorg-libXinerama xorg-libXrandr xorg-libXrender \
    1.10 +DEPENDS="alsa-lib lame libxml2 expat gtk+ xorg-libX11 \
    1.11 +	xorg-libXau xorg-libXcomposite xorg-libXcursor \
    1.12 +	xorg-libXdmcp xorg-libXext xorg-libXfixes \
    1.13 +	xorg-libXinerama xorg-libXrandr xorg-libXrender \
    1.14  	xorg-libXdamage"
    1.15 -BUILD_DEPENDS="alsa-lib-dev libxml2-dev xorg-libX11-dev gtk+-dev"
    1.16 +BUILD_DEPENDS="alsa-lib-dev lame-dev libxml2-dev \
    1.17 +xorg-libX11-dev gtk+-dev"
    1.18  
    1.19  HOST_ARCH="i486 arm"
    1.20  
    1.21 @@ -51,3 +53,23 @@
    1.22  	cp -a $stuff/skel	$fs/etc
    1.23  	chown -R 0.0 $fs
    1.24  }
    1.25 +
    1.26 +post_install()
    1.27 +{
    1.28 +	for i in $(ls "$1/home" 2> /dev/null); do
    1.29 +	    if grep -E '\$HOME|/home/user_name' $1/home/$i/.mhwaveedit/config 2>&1 > /dev/null; then
    1.30 +	        echo
    1.31 +	        echo -n "Fix configuration files for $i ..."
    1.32 +		sed -i -e "s|\$HOME|/home/$i|" -e "s|user_name|$i|" \
    1.33 +		$1/home/$i/.mhwaveedit/config
    1.34 +	    fi
    1.35 +	done
    1.36 +	status
    1.37 +}
    1.38 + 
    1.39 +post_remove()
    1.40 +{
    1.41 +	echo -n "Removing configuration files..."
    1.42 + 	rm -rf /home/*/.mhwaveedit
    1.43 +	status
    1.44 +}