wok-current diff eggwm/receipt @ rev 16372
Add eggwm + tinyxml and hg add for pkgs from last commit
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Apr 14 18:33:22 2014 +0200 (2014-04-14) |
parents | |
children | 9e01bc6321ea |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/eggwm/receipt Mon Apr 14 18:33:22 2014 +0200 1.3 @@ -0,0 +1,52 @@ 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 libQtCore libQtGui" 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 + qmake EggWM.pro && 1.23 + make && 1.24 + make install INSTALL_ROOT=$DESTDIR 1.25 +} 1.26 + 1.27 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.28 +genpkg_rules() 1.29 +{ 1.30 + mkdir -p $fs/usr/bin $fs/usr/share 1.31 + install -m 755 $src/eggwm $fs/usr/bin/eggwm 1.32 + cp -a $src/installation $fs/usr/share/eggwm 1.33 + rm -rf $fs/usr/share/eggwm/themes/testtheme 1.34 + find $fs/usr/share/eggwm -type f -exec chmod 0644 {} \; 1.35 + cp -r $stuff/xsessions $fs/usr/share 1.36 +} 1.37 + 1.38 +post_install() 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 + echo -n "Adding $PACKAGE to /etc/slim.conf..." 1.44 + sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" $root/etc/slim.conf 1.45 + status 1.46 + fi 1.47 +} 1.48 + 1.49 +post_remove() 1.50 +{ 1.51 + # Remove WM from SLIM available sessions. 1.52 + if grep -q $PACKAGE $1/etc/slim.conf; then 1.53 + sed -i s/,$PACKAGE// $root/etc/slim.conf 1.54 + fi 1.55 +}