wok-6.x view 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 source
1 # SliTaz package receipt.
3 PACKAGE="lxpanel"
4 VERSION="0.3.5"
5 CATEGORY="x-window"
6 SHORT_DESC="Standard compliant desktop panel."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="gtk+ slitaz-menus"
9 BUILD_DEPENDS="gtk+-dev gettext"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://lxde.sourceforge.net/"
12 WGET_URL="$SF_MIRROR/lxde/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 # Patch the menu
19 patch -p0 < ../stuff/ptk-app-menu.patch || exit 1
20 patch -p0 < ../stuff/fr.patch || exit 1
21 ./configure \
22 --prefix=/usr \
23 --with-plugins=all \
24 $CONFIGURE_ARGS
25 make
26 make DESTDIR=$PWD/_pkg install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/share
33 cp -a $_pkg/usr/bin $fs/usr
34 cp -a $_pkg/usr/lib $fs/usr
35 cp -a $_pkg/usr/share/lxpanel $fs/usr/share
37 # Remove a few "heavy" an unseful images
38 rm $fs/usr/share/lxpanel/images/*.svg
40 # Move profile to /etc/lxpanel (/usr maybe read-only)
41 mkdir $fs/etc
42 mv -f $fs/usr/share/lxpanel/profile $fs/etc/lxpanel
43 ln -s /etc/lxpanel $fs/usr/share/lxpanel/profile
45 # Default config
46 mv $fs/etc/lxpanel/default $fs/etc/lxpanel/original
47 cp -a stuff/default $fs/etc/lxpanel
48 }
50 # lxpanel logout calls lxsession-logout, not installed by default so
51 # fake.
52 post_install()
53 {
54 locale root
55 root=$1
56 if [ ! -f $root/usr/bin/lxsession-logout ]; then
57 cat > $root/usr/bin/lxsession-logout << "EOT"
58 #!/bin/sh
59 # lxsession-logout fake.
60 #
61 WM=`cat /etc/X11/wm.default`
63 case $WM in
64 jwm)
65 jwm -exit ;;
66 openbox)
67 openbox --exit ;;
68 esac
69 EOT
70 chmod +x $root/usr/bin/lxsession-logout
71 fi
72 }