wok diff compiz/receipt @ rev 15488

Up: firefox-dev (17.0.10esr)
author Dominique Corbex <domcox@slitaz.org>
date Sun Nov 17 16:28:53 2013 +0100 (2013-11-17)
parents
children eb8067417980
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/compiz/receipt	Sun Nov 17 16:28:53 2013 +0100
     1.3 @@ -0,0 +1,45 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="compiz"
     1.7 +VERSION="0.9.4"
     1.8 +CATEGORY="meta"
     1.9 +SHORT_DESC="Compiz 3D effect support on SliTaz."
    1.10 +MAINTAINER="pankso@slitaz.org"
    1.11 +WEB_SITE="http://www.compiz.org/"
    1.12 +SUGGESTED="compiz-ccsm compiz-compizconfig-python"
    1.13 +
    1.14 +DEPENDS="emerald compiz-core compiz-plugins-main compiz-libcompizconfig \
    1.15 +slitaz-configs"
    1.16 +BUILD_DEPENDS=""
    1.17 +
    1.18 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.19 +genpkg_rules()
    1.20 +{
    1.21 +	mkdir -p \
    1.22 +		$fs/usr/bin \
    1.23 +		$fs/usr/share/doc/slitaz
    1.24 +	echo "See: http://doc.slitaz.org/" > \
    1.25 +		$fs/usr/share/doc/slitaz/compiz.txt
    1.26 +	cp -r $stuff/xsessions $fs/usr/share
    1.27 +	install -m 0777 $stuff/compiz-session $fs/usr/bin
    1.28 +	chown -R 0.0 $fs
    1.29 +}
    1.30 +
    1.31 +post_install()
    1.32 +{
    1.33 +	res=$(cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//)
    1.34 +	# Adding WM to SLIM available sessions.
    1.35 +	if ! echo "$res" | grep -q $PACKAGE; then
    1.36 +		echo -n "Adding $PACKAGE to /etc/slim.conf..."
    1.37 +		sed -i "s/^sessions.*/sessions            ${res},$PACKAGE/" $1/etc/slim.conf
    1.38 +		status
    1.39 +	fi
    1.40 +}
    1.41 +
    1.42 +post_remove()
    1.43 +{
    1.44 +	# Remove WM from SLIM available sessions.
    1.45 +	if grep -q $PACKAGE $1/etc/slim.conf; then
    1.46 +		sed -i s/,$PACKAGE// $1/etc/slim.conf
    1.47 +	fi
    1.48 +}