wok-undigest rev 1092
Add EggWM a QT4 WM we could use for a SliTaz Qt flavor
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Jan 03 12:01:06 2014 +0100 (2014-01-03) |
parents | 3f059c1d154b |
children | d3e6a043352a |
files | eggwm/receipt eggwm/stuff/xsessions/eggwm.desktop |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/eggwm/receipt Fri Jan 03 12:01:06 2014 +0100 1.3 @@ -0,0 +1,51 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="eggwm" 1.7 +VERSION="0.2" 1.8 +CATEGORY="x-window" 1.9 +SHORT_DESC="EggWM is a light QT Window Manager." 1.10 +MAINTAINER="pankso@slitaz.org" 1.11 +LICENSE="GPL3" 1.12 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.13 +WEB_SITE="http://code.google.com/p/eggwm/" 1.14 +WGET_URL="http://eggwm.googlecode.com/files/$TARBALL" 1.15 + 1.16 +DEPENDS="xorg-libX11" 1.17 +BUILD_DEPENDS="qmake Qt4-dev" 1.18 + 1.19 +# Rules to configure and make the package. 1.20 +compile_rules() 1.21 +{ 1.22 + cd $src 1.23 + qmake && make 1.24 +} 1.25 + 1.26 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.27 +genpkg_rules() 1.28 +{ 1.29 + mkdir -p $fs/usr/bin $fs/usr/share 1.30 + install -m 755 $src/eggwm $fs/usr/bin/eggwm 1.31 + cp -a $src/installation $fs/usr/share/eggwm 1.32 + rm -rf $fs/usr/share/eggwm/themes/testtheme 1.33 + find $fs/usr/share/eggwm -type f -exec chmod 0644 {} \; 1.34 + cp -r $stuff/xsessions $fs/usr/share 1.35 +} 1.36 + 1.37 +post_install() 1.38 +{ 1.39 + res=$(cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//) 1.40 + # Adding WM to SLIM available sessions. 1.41 + if ! echo "$res" | grep -q $PACKAGE; then 1.42 + echo -n "Adding $PACKAGE to /etc/slim.conf..." 1.43 + sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" $1/etc/slim.conf 1.44 + status 1.45 + fi 1.46 +} 1.47 + 1.48 +post_remove() 1.49 +{ 1.50 + # Remove WM from SLIM available sessions. 1.51 + if grep -q $PACKAGE $1/etc/slim.conf; then 1.52 + sed -i s/,$PACKAGE// $1/etc/slim.conf 1.53 + fi 1.54 +}