wok-next rev 12405
Add compiz meta package (Compiz/LXDE work fine)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Apr 20 18:01:38 2012 +0200 (2012-04-20) |
parents | dad10fa06251 |
children | e666c5086b54 |
files | compiz-core/receipt compiz-libcompizconfig/receipt compiz-plugins-main/receipt compiz/receipt compiz/stuff/compiz-session compiz/stuff/xsessions/compiz.desktop |
line diff
1.1 --- a/compiz-core/receipt Fri Apr 20 16:51:07 2012 +0200 1.2 +++ b/compiz-core/receipt Fri Apr 20 18:01:38 2012 +0200 1.3 @@ -5,15 +5,16 @@ 1.4 CATEGORY="x-window" 1.5 SHORT_DESC="Compiz is an OpenGL compositing manager for 3D effect." 1.6 MAINTAINER="pankso@slitaz.org" 1.7 -DEPENDS="librsvg libxslt startup-notification libboost-serialization \ 1.8 -glibmm mesa" 1.9 -BUILD_DEPENDS="$DEPENDS cmake intltool librsvg-dev libxslt-dev \ 1.10 -startup-notification-dev libboost-dev libboost-serialization-dev \ 1.11 -glibmm-dev mesa-dev file" 1.12 TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.13 WEB_SITE="http://www.compiz.org/" 1.14 WGET_URL="http://releases.compiz.org/0.9.4/$TARBALL" 1.15 1.16 +DEPENDS="librsvg libxslt startup-notification libboost-serialization \ 1.17 +glibmm mesa emerald" 1.18 +BUILD_DEPENDS="xorg-dev cmake intltool librsvg-dev libxslt-dev \ 1.19 +startup-notification-dev libboost-dev libboost-serialization-dev \ 1.20 +glibmm-dev mesa-dev file" 1.21 + 1.22 # Rules to configure and make the package. 1.23 compile_rules() 1.24 { 1.25 @@ -21,6 +22,7 @@ 1.26 mkdir build && cd build 1.27 cmake \ 1.28 -DCMAKE_INSTALL_PREFIX="/usr" \ 1.29 + -DCOMPIZ_DISABLE_PLUGIN_KDE=ON \ 1.30 -DCOMPIZ_DESTDIR="../../install" .. && 1.31 make && make install && 1.32 make findcompiz_install 1.33 @@ -30,10 +32,9 @@ 1.34 genpkg_rules() 1.35 { 1.36 mkdir -p $fs/usr/lib $fs/usr/share 1.37 - cp -a $_pkg/usr/bin $fs/usr 1.38 - cp -a $_pkg/usr/lib/compiz $fs/usr/lib 1.39 - cp -a $_pkg/usr/lib/*.so* $fs/usr/lib 1.40 - cp -a $_pkg/usr/share/compiz $fs/usr/share 1.41 + cp -a $install/usr/bin $fs/usr 1.42 + cp -a $install/usr/lib/compiz $fs/usr/lib 1.43 + cp -a $install/usr/lib/*.so* $fs/usr/lib 1.44 + cp -a $install/usr/share/compiz $fs/usr/share 1.45 rm -rf $fs/usr/share/compiz/cmake 1.46 - #cp -a $_pkg/usr/share/gconf $fs/usr/share 1.47 }
2.1 --- a/compiz-libcompizconfig/receipt Fri Apr 20 16:51:07 2012 +0200 2.2 +++ b/compiz-libcompizconfig/receipt Fri Apr 20 18:01:38 2012 +0200 2.3 @@ -5,13 +5,14 @@ 2.4 CATEGORY="x-window" 2.5 SHORT_DESC="Compiz configuration library." 2.6 MAINTAINER="pankso@slitaz.org" 2.7 -DEPENDS="compiz-core" 2.8 -BUILD_DEPENDS="$DEPENDS compiz-core-dev cmake glibc-dev \ 2.9 -libxslt-dev glibmm-dev startup-notification-dev libboost-dev" 2.10 TARBALL="$PACKAGE-$VERSION.tar.bz2" 2.11 WEB_SITE="http://www.compiz.org/" 2.12 WGET_URL="http://releases.compiz.org/$VERSION/$TARBALL" 2.13 2.14 +DEPENDS="compiz-core" 2.15 +BUILD_DEPENDS="compiz-core-dev cmake glibc-dev libxslt-dev glibmm-dev \ 2.16 +startup-notification-dev libboost-dev" 2.17 + 2.18 # Rules to configure and make the package. 2.19 compile_rules() 2.20 { 2.21 @@ -28,7 +29,7 @@ 2.22 genpkg_rules() 2.23 { 2.24 mkdir -p $fs/usr/lib $fs/usr/share 2.25 - cp -a $_pkg/etc $fs 2.26 - cp -a $_pkg/usr/lib/compiz* $fs/usr/lib 2.27 - cp -a $_pkg/usr/lib/*.so* $fs/usr/lib 2.28 + cp -a $install/etc $fs 2.29 + cp -a $install/usr/lib/compiz* $fs/usr/lib 2.30 + cp -a $install/usr/lib/*.so* $fs/usr/lib 2.31 }
3.1 --- a/compiz-plugins-main/receipt Fri Apr 20 16:51:07 2012 +0200 3.2 +++ b/compiz-plugins-main/receipt Fri Apr 20 18:01:38 2012 +0200 3.3 @@ -5,14 +5,15 @@ 3.4 CATEGORY="x-window" 3.5 SHORT_DESC="Compiz main plugins." 3.6 MAINTAINER="pankso@slitaz.org" 3.7 -DEPENDS="compiz-core compiz-libcompizconfig" 3.8 -BUILD_DEPENDS="$DEPENDS compiz-core-dev compiz-libcompizconfig-dev \ 3.9 -cmake libxslt-dev glibmm-dev startup-notification-dev libboost-dev mesa-dev \ 3.10 -libboost-serialization-dev" 3.11 TARBALL="$PACKAGE-$VERSION.tar.bz2" 3.12 WEB_SITE="http://www.compiz.org/" 3.13 WGET_URL="http://releases.compiz.org/0.9.4/$TARBALL" 3.14 3.15 +DEPENDS="xorg-libX11 compiz-core compiz-libcompizconfig gtk+ librsvg" 3.16 +BUILD_DEPENDS="xorg-dev compiz-core-dev compiz-libcompizconfig-dev cmake \ 3.17 +glibmm-dev libxslt-dev startup-notification-dev libboost-dev mesa-dev \ 3.18 +gtk+-dev libboost-serialization-dev intltool librsvg-dev" 3.19 + 3.20 # Rules to configure and make the package. 3.21 compile_rules() 3.22 { 3.23 @@ -29,6 +30,6 @@ 3.24 genpkg_rules() 3.25 { 3.26 mkdir -p $fs/usr/lib $fs/usr/share 3.27 - cp -a $_pkg/usr/lib/compiz $fs/usr/lib 3.28 - cp -a $_pkg/usr/share/compiz $fs/usr/share 3.29 + cp -a $install/usr/lib/compiz $fs/usr/lib 3.30 + cp -a $install/usr/share/compiz $fs/usr/share 3.31 }
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 4.2 +++ b/compiz/receipt Fri Apr 20 18:01:38 2012 +0200 4.3 @@ -0,0 +1,45 @@ 4.4 +# SliTaz package receipt. 4.5 + 4.6 +PACKAGE="compiz" 4.7 +VERSION="0.9.4" 4.8 +CATEGORY="meta" 4.9 +SHORT_DESC="Compiz 3D effect support on SliTaz." 4.10 +MAINTAINER="pankso@slitaz.org" 4.11 +WEB_SITE="http://www.compiz.org/" 4.12 +SUGGESTED="compiz-ccsm compiz-compizconfig-python" 4.13 + 4.14 +DEPENDS="emerald compiz-core compiz-plugins-main compiz-libcompizconfig \ 4.15 +slitaz-configs" 4.16 +BUILD_DEPENDS="" 4.17 + 4.18 +# Rules to gen a SliTaz package suitable for Tazpkg. 4.19 +genpkg_rules() 4.20 +{ 4.21 + mkdir -p \ 4.22 + $fs/usr/bin \ 4.23 + $fs/usr/share/doc/slitaz 4.24 + echo "See: http://doc.slitaz.org/" > \ 4.25 + $fs/usr/share/doc/slitaz/compiz.txt 4.26 + cp -r $stuff/xsessions $fs/usr/share 4.27 + install -m 0777 $stuff/compiz-session $fs/usr/bin 4.28 + chown -R 0.0 $fs 4.29 +} 4.30 + 4.31 +post_install() 4.32 +{ 4.33 + res=$(cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//) 4.34 + # Adding WM to SLIM available sessions. 4.35 + if ! echo "$res" | grep -q $PACKAGE; then 4.36 + echo -n "Adding $PACKAGE to /etc/slim.conf..." 4.37 + sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" $1/etc/slim.conf 4.38 + status 4.39 + fi 4.40 +} 4.41 + 4.42 +post_remove() 4.43 +{ 4.44 + # Remove WM from SLIM available sessions. 4.45 + if grep -q $PACKAGE $1/etc/slim.conf; then 4.46 + sed -i s/,$PACKAGE// $1/etc/slim.conf 4.47 + fi 4.48 +}
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 5.2 +++ b/compiz/stuff/compiz-session Fri Apr 20 18:01:38 2012 +0200 5.3 @@ -0,0 +1,34 @@ 5.4 +#!/bin/sh 5.5 +# 5.6 +# Start Compiz 3D Desktop on SliTaz. We use some LXDE componment 5.7 +# and check compiz config files exist. 5.8 +# 5.9 + 5.10 +export XDG_CONFIG_HOME="$HOME/.config" 5.11 +export XDG_CACHE_HOME="$HOME/.cache" 5.12 +export XDG_CURRENT_DESKTOP=LXDE 5.13 +export DESKTOP_SESSION=compiz 5.14 + 5.15 +# Start DBUS session. 5.16 +if [ ! "$DBUS_SESSION_BUS_ADDRESS" ]; then 5.17 + dbus-launch --sh-syntax --exit-with-session & 5.18 +fi 5.19 + 5.20 +# Compiz configuration files from slitaz-configs. 5.21 +if [ ! -f "$XDG_CONFIG_HOME/compiz-1/compizconfig/config" ]; then 5.22 + mkdir -p $XDG_CONFIG_HOME/compiz-1/compizconfig 5.23 + cp -r /usr/share/slitaz/compiz/* $XDG_CONFIG_HOME/compiz-1/compizconfig 5.24 +fi 5.25 + 5.26 +# PCmanFM config file. NOTE: will change with new PCmanFM 5.27 +if [ ! -f "$XDG_CONFIG_HOME/pcmanfm/main" ]; then 5.28 + mkdir -p $XDG_CONFIG_HOME/pcmanfm 5.29 + cp /usr/share/slitaz/lxde/pcmanfm.main \ 5.30 + $XDG_CONFIG_HOME/pcmanfm/main 5.31 +fi 5.32 + 5.33 +# Start some LXDE componment. 5.34 +lxpanel -p slitaz & 5.35 +pcmanfm -d & 5.36 +emerald & 5.37 +exec compiz ccp --indirect-rendering