wok-current view lxpanel/receipt @ rev 11090

Up: dbus-glib to 0.98.
author Christopher Rogers <slaxemulator@gmail.com>
date Mon Oct 17 02:43:44 2011 +0000 (2011-10-17)
parents 086636bf9f9d
children abfc6db7f416
line source
1 # SliTaz package receipt.
3 PACKAGE="lxpanel"
4 VERSION="0.5.6"
5 CATEGORY="x-window"
6 SHORT_DESC="Standard compliant desktop panel."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.lxde.org/"
10 WGET_URL="$SF_MIRROR/lxde/$TARBALL"
11 CONFIG_FILES="/etc/lxpanel/default"
13 DEPENDS="glibc-base glib libgio expat zlib menu-cache slitaz-icon \
14 gtk+ alsa-lib wireless_tools"
15 BUILD_DEPENDS="gtk+-dev gettext expat-dev intltool menu-cache-dev \
16 lxmenu-data alsa-lib-dev wireless_tools-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
22 #patch -p1 -i $stuff/Fix-failure-to-react-to-keyboard-map-changes-initiat.patch
23 # Devnote : this patch shouldn't be necessary in next release of lxpanel (current : 0.5.6).
24 patch -p1 -i $stuff/battery-plugin.patch
25 # patch to fix 100% battery bug with battery plugin
26 patch -p1 -i $stuff/battery.patch
27 ./configure --with-plugins=all &&
28 make && make install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/share $fs/usr/lib
36 cp -a $install/usr/bin $fs/usr
37 cp -a $install/usr/lib/lxpanel $fs/usr/lib
38 cp -a $install/usr/share/lxpanel $fs/usr/share
40 # Remove a few "heavy" and unuseful images (ns* goes in extra)
41 for i in file-manager* stock_volume* gnome-[a-m]*.png \
42 gnome-netstatus-[d-t]*.png my-* ns-*.png *lock-*.png
43 do
44 rm $fs/usr/share/lxpanel/images/$i
45 done
47 # Custom images to match SliTaz theme.
48 cp -a stuff/images/* $fs/usr/share/lxpanel/images
50 # Remove plugins --> lxpanel-extra
51 rm $fs/usr/lib/lxpanel/plugins/kbled.so
52 rm -rf $fs/usr/share/lxpanel/images/xkb-flags
54 # Move profile to /etc/lxpanel (/usr maybe read-only) and default config
55 mkdir $fs/etc
56 mv -f $fs/usr/share/lxpanel/profile $fs/etc/lxpanel
57 ln -s /etc/lxpanel $fs/usr/share/lxpanel/profile
58 mv $fs/etc/lxpanel/default $fs/etc/lxpanel/original
59 cp -a stuff/default $fs/etc/lxpanel
61 # lxsession-logout fake
62 cat > $fs/usr/bin/lxsession-logout << "EOT"
63 #!/bin/sh
64 # lxsession-logout fake.
65 #
66 tazbox logout &
67 exit 0
68 EOT
69 chmod +x $fs/usr/bin/lxsession-logout
70 }