wok-current diff compiz/receipt @ rev 24155

linld : fix lm detection
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Dec 06 16:44:52 2021 +0000 (2021-12-06)
parents 970c5ec9a60a
children e171b422f9e7
line diff
     1.1 --- a/compiz/receipt	Sun May 20 13:28:18 2018 +0200
     1.2 +++ b/compiz/receipt	Mon Dec 06 16:44:52 2021 +0000
     1.3 @@ -1,26 +1,26 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="compiz"
     1.7 -VERSION="0.8.12"
     1.8 +VERSION="0.8.14"
     1.9  CATEGORY="meta"
    1.10 +TAGS="window-manager"
    1.11  SHORT_DESC="Compiz 3D effect support on SliTaz."
    1.12  MAINTAINER="pankso@slitaz.org"
    1.13  LICENSE="MIT GPL LGPL"
    1.14  WEB_SITE="http://www.compiz.org/"
    1.15 -TAGS="window-manager"
    1.16  
    1.17 -DEPENDS="emerald compiz-core compiz-plugins-main compiz-libcompizconfig \
    1.18 -slitaz-configs cairo-gl"
    1.19  SUGGESTED="compiz-ccsm compiz-plugins-extra emerald-themes"
    1.20 +DEPENDS="cairo-gl compiz-core compiz-libcompizconfig compiz-plugins-main 
    1.21 +	emerald slitaz-configs"
    1.22  
    1.23  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.24  genpkg_rules()
    1.25  {
    1.26  	mkdir -p $fs/usr/bin
    1.27 -	cp -r $stuff/xsessions $fs/usr/share
    1.28 -	install -m 0777 $stuff/compiz-session $fs/usr/bin
    1.29 -	install -m 0777 $stuff/compiz-startwm $fs/usr/bin
    1.30 -	chown -R 0.0 $fs
    1.31 +	cp -r $stuff/xsessions			$fs/usr/share
    1.32 +	install -m 0777 $stuff/compiz-session	$fs/usr/bin
    1.33 +	install -m 0777 $stuff/compiz-startwm	$fs/usr/bin
    1.34 +	chown -R 0.0				$fs
    1.35  }
    1.36  
    1.37  post_install()
    1.38 @@ -29,30 +29,37 @@
    1.39  
    1.40  	res=$(cat $root/etc/slim.conf | grep ^session | sed s/"sessions. *"//)
    1.41  	# Adding WM to SLIM available sessions.
    1.42 -	if ! echo "$res" | grep -q $PACKAGE; then
    1.43 +	if ! echo "$res" | grep -q $PACKAGE
    1.44 +	  then
    1.45  		echo
    1.46  		echo -n "Adding $PACKAGE to /etc/slim.conf..."
    1.47 -		sed -i "s/^sessions.*/sessions            ${res},$PACKAGE/" $root/etc/slim.conf
    1.48 +		sed -i "s/^sessions.*/sessions            ${res},$PACKAGE/" \
    1.49 +			$root/etc/slim.conf
    1.50  		status
    1.51  	fi
    1.52 -	for i in $(ls -d "$1"/home/* 2> /dev/null);
    1.53 -	do	[ -d "$i" ] && \
    1.54 -		sed '/WINDOW_MANAGER=/s|"\([^"]*\)"|"compiz"|' -i \
    1.55 -		"$i/.config/slitaz/applications.conf" \
    1.56 -		"$1/etc/slitaz/applications.conf"
    1.57 -	done
    1.58 +
    1.59 +	for i in $(ls -d "$1"/home/* 2> /dev/null)
    1.60 +	  do
    1.61 +		[ -d "$i" ] &&
    1.62 +		sed '/WINDOW_MANAGER=/s|"\([^"]*\)"|"compiz"|' -i	\
    1.63 +			"$i/.config/slitaz/applications.conf"		\
    1.64 +			"$1/etc/slitaz/applications.conf"
    1.65 +	  done
    1.66  }
    1.67  
    1.68  post_remove()
    1.69  {
    1.70  	# Remove WM from SLIM available sessions.
    1.71 -	if grep -q $PACKAGE $root/etc/slim.conf; then
    1.72 +	if grep -q $PACKAGE $root/etc/slim.conf
    1.73 +	  then
    1.74  		sed -i s/,$PACKAGE// $root/etc/slim.conf
    1.75  	fi
    1.76 -	for i in $(ls -d "$1"/home/* 2> /dev/null);
    1.77 -	do [ -d "$i" ] && \
    1.78 -		sed '/WINDOW_MANAGER=/s|"\([^"]*\)"|"lxde-session"|' -i \
    1.79 -		"$i/.config/slitaz/applications.conf" \
    1.80 -		"$1/etc/slitaz/applications.conf"
    1.81 -	done
    1.82 +
    1.83 +	for i in $(ls -d "$1"/home/* 2> /dev/null)
    1.84 +	  do
    1.85 +		[ -d "$i" ] &&
    1.86 +		sed '/WINDOW_MANAGER=/s|"\([^"]*\)"|"lxde-session"|' -i	\
    1.87 +			"$i/.config/slitaz/applications.conf"		\
    1.88 +			"$1/etc/slitaz/applications.conf"
    1.89 +	  done
    1.90  }