# HG changeset patch # User Christophe Lincoln # Date 1388746866 -3600 # Node ID ebb2950a3e1ae221baddde73913f1af4d77ca5bf # Parent 3f059c1d154b829c23cba424217c384fd4560492 Add EggWM a QT4 WM we could use for a SliTaz Qt flavor diff -r 3f059c1d154b -r ebb2950a3e1a eggwm/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/eggwm/receipt Fri Jan 03 12:01:06 2014 +0100 @@ -0,0 +1,51 @@ +# SliTaz package receipt. + +PACKAGE="eggwm" +VERSION="0.2" +CATEGORY="x-window" +SHORT_DESC="EggWM is a light QT Window Manager." +MAINTAINER="pankso@slitaz.org" +LICENSE="GPL3" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://code.google.com/p/eggwm/" +WGET_URL="http://eggwm.googlecode.com/files/$TARBALL" + +DEPENDS="xorg-libX11" +BUILD_DEPENDS="qmake Qt4-dev" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + qmake && make +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/bin $fs/usr/share + install -m 755 $src/eggwm $fs/usr/bin/eggwm + cp -a $src/installation $fs/usr/share/eggwm + rm -rf $fs/usr/share/eggwm/themes/testtheme + find $fs/usr/share/eggwm -type f -exec chmod 0644 {} \; + cp -r $stuff/xsessions $fs/usr/share +} + +post_install() +{ + res=$(cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//) + # Adding WM to SLIM available sessions. + if ! echo "$res" | grep -q $PACKAGE; then + echo -n "Adding $PACKAGE to /etc/slim.conf..." + sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" $1/etc/slim.conf + status + fi +} + +post_remove() +{ + # Remove WM from SLIM available sessions. + if grep -q $PACKAGE $1/etc/slim.conf; then + sed -i s/,$PACKAGE// $1/etc/slim.conf + fi +} diff -r 3f059c1d154b -r ebb2950a3e1a eggwm/stuff/xsessions/eggwm.desktop --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/eggwm/stuff/xsessions/eggwm.desktop Fri Jan 03 12:01:06 2014 +0100 @@ -0,0 +1,7 @@ +[Desktop Entry] +Encoding=UTF-8 +Type=XSession +Name=EggWM Desktop +Name[fr]=Bureau EggWM +Exec=eggwm +