wok-6.x view lxpanel/receipt @ rev 3093

lxpanel: Remove and add custom icon + use gtk calendar
author Christophe Lincoln <pankso@slitaz.org>
date Sun May 17 00:38:37 2009 +0200 (2009-05-17)
parents b1bda6bf42c4
children ee420562a299
line source
1 # SliTaz package receipt.
3 PACKAGE="lxpanel"
4 VERSION="0.3.8.1"
5 CATEGORY="x-window"
6 SHORT_DESC="Standard compliant desktop panel."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="gtk+ slitaz-menus alsa-lib xorg-libXdamage slitaz-icon"
9 BUILD_DEPENDS="gtk+-dev gettext wireless_tools-dev wireless_tools"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://lxde.sourceforge.net/"
12 WGET_URL="$SF_MIRROR/lxde/$TARBALL"
13 CONFIG_FILES="/etc/lxpanel/default"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 # Patch the menu
20 for i in ptk-app-menu.patch fr.patch ; do
21 [ -f done.$i ] && continue
22 patch -p0 < ../stuff/$i || exit 1
23 touch done.$i
24 done
25 ./configure \
26 --prefix=/usr \
27 --with-plugins=all \
28 $CONFIGURE_ARGS &&
29 make &&
30 make DESTDIR=$PWD/_pkg install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/share
37 cp -a $_pkg/usr/bin $fs/usr
38 cp -a $_pkg/usr/lib $fs/usr
39 cp -a $_pkg/usr/share/lxpanel $fs/usr/share
40 # Remove a few "heavy" an unseful images (ns* goes in extra)
41 for i in file-manager* stock_volume* gnome-[a-k]*.png gnome-m*.png \
42 gnome-netstatus-[d-t]*.png gnome-[o-z]*.png my-* redhat*.png \
43 ns-*.png *lock-*.png gnome-logout.png
44 do
45 rm $fs/usr/share/lxpanel/images/$i
46 done
47 # Custom images to match SliTaz theme.
48 cp -a stuff/images/* $fs/usr/share/lxpanel/images
49 # Remove plugins --> lxpanel-extra
50 rm $fs/usr/lib/lxpanel/plugins/netstat.so
51 rm $fs/usr/lib/lxpanel/plugins/kbled.so
52 # Move profile to /etc/lxpanel (/usr maybe read-only) and default config
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
56 mv $fs/etc/lxpanel/default $fs/etc/lxpanel/original
57 cp -a stuff/default $fs/etc/lxpanel
58 # lxsession-logout fake
59 cat > $fs/usr/bin/lxsession-logout << "EOT"
60 #!/bin/sh
61 # lxsession-logout fake.
62 #
64 desktopbox logout &
65 exit 0
67 EOT
68 chmod +x $fs/usr/bin/lxsession-logout
69 }