wok-next diff lxpanel/receipt @ rev 610
Up: lxpanel (0.3.5) - Use new config UI and files
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Apr 18 18:18:08 2008 +0200 (2008-04-18) |
parents | ce6a7900a0ab |
children | 924a05471475 |
line diff
1.1 --- a/lxpanel/receipt Thu Mar 20 22:30:30 2008 +0100 1.2 +++ b/lxpanel/receipt Fri Apr 18 18:18:08 2008 +0200 1.3 @@ -1,7 +1,7 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="lxpanel" 1.7 -VERSION="0.2.8" 1.8 +VERSION="0.3.5" 1.9 CATEGORY="x-window" 1.10 SHORT_DESC="Standard compliant desktop panel." 1.11 MAINTAINER="pankso@slitaz.org" 1.12 @@ -16,15 +16,14 @@ 1.13 { 1.14 cd $src 1.15 # Patch the menu 1.16 - patch -p0 < ../stuff/ptk-app-menu.u 1.17 - patch -p0 < ../stuff/fr.u 1.18 + patch -p0 < ../stuff/ptk-app-menu.patch || exit 1 1.19 + patch -p0 < ../stuff/fr.patch || exit 1 1.20 ./configure \ 1.21 --prefix=/usr \ 1.22 + --with-plugins=all \ 1.23 $CONFIGURE_ARGS 1.24 make 1.25 make DESTDIR=$PWD/_pkg install 1.26 - # Avoid insatll error (want docbook for man) 1.27 - echo "Please continue..." 1.28 } 1.29 1.30 # Rules to gen a SliTaz package suitable for Tazpkg. 1.31 @@ -48,3 +47,26 @@ 1.32 cp -a stuff/default $fs/etc/lxpanel 1.33 } 1.34 1.35 +# lxpanel logout calls lxsession-logout, not installed by default so 1.36 +# fake. 1.37 +post_install() 1.38 +{ 1.39 + locale root 1.40 + root=$1 1.41 + if [ ! -f $root/usr/bin/lxsession-logout ]; then 1.42 + cat > $root/usr/bin/lxsession-logout << "EOT" 1.43 +#!/bin/sh 1.44 +# lxsession-logout fake. 1.45 +# 1.46 +WM=`cat /etc/X11/wm.default` 1.47 + 1.48 +case $WM in 1.49 + jwm) 1.50 + jwm -exit ;; 1.51 + openbox) 1.52 + openbox --exit ;; 1.53 +esac 1.54 +EOT 1.55 + chmod +x $root/usr/bin/lxsession-logout 1.56 + fi 1.57 +}