wok-stable view lxpanel/receipt @ rev 746
Add Simple Mail (Firefox addon providing a full futured mail client)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon May 05 22:25:11 2008 +0200 (2008-05-05) |
parents | a248289600d4 |
children | a1d12c37584a |
line source
1 # SliTaz package receipt.
3 PACKAGE="lxpanel"
4 VERSION="0.3.5.4"
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/file-manager.png
39 rm $fs/usr/share/lxpanel/images/gnome-applications.png
40 rm $fs/usr/share/lxpanel/images/gnome-devel.png
41 rm $fs/usr/share/lxpanel/images/gnome-fs*.png
42 rm $fs/usr/share/lxpanel/images/gnome-joystick.png
43 rm $fs/usr/share/lxpanel/images/gnome-multimedia.png
44 rm $fs/usr/share/lxpanel/images/gnome-s*
45 rm $fs/usr/share/lxpanel/images/gnome-g*.png
46 rm $fs/usr/share/lxpanel/images/gnome-u*.png
47 rm $fs/usr/share/lxpanel/images/my-*
48 rm $fs/usr/share/lxpanel/images/redhat*.png
49 rm $fs/usr/share/lxpanel/images/gnome-netstatus-[d-t]*.png
50 rm $fs/usr/share/lxpanel/images/ns-*.png
52 # Move profile to /etc/lxpanel (/usr maybe read-only)
53 mkdir $fs/etc
54 mv -f $fs/usr/share/lxpanel/profile $fs/etc/lxpanel
55 ln -s /etc/lxpanel $fs/usr/share/lxpanel/profile
57 # Default config
58 mv $fs/etc/lxpanel/default $fs/etc/lxpanel/original
59 cp -a stuff/default $fs/etc/lxpanel
61 # Declare lxsession-logout in files.list
62 touch $fs/usr/bin/lxsession-logout
63 }
65 # lxpanel logout calls lxsession-logout, not installed by default so
66 # fake.
67 post_install()
68 {
69 locale root
70 root=$1
71 if [ ! -s $root/usr/bin/lxsession-logout ]; then
72 cat > $root/usr/bin/lxsession-logout << "EOT"
73 #!/bin/sh
74 # lxsession-logout fake.
75 #
76 WM=`cat /etc/X11/wm.default`
78 if [ "$WM" = "jwm" ]; then
79 jwm -exit
80 else
81 openbox --exit
82 fi
84 EOT
85 chmod +x $root/usr/bin/lxsession-logout
86 fi
87 }