wok-current view lxpanel/receipt @ rev 12095

nanochess, sudoku: run tazweb --notoolbar (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Mar 10 23:13:38 2012 +0100 (2012-03-10)
parents bd26076a2af9
children 1134cd1d9d3c
line source
1 # SliTaz package receipt.
3 PACKAGE="lxpanel"
4 VERSION="0.5.8"
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/configure_desktop_number.patch
23 patch -p1 -i $stuff/fix_position.patch
24 patch -p0 -i $stuff/cpu-size-color.patch || exit 1
25 ./configure --with-plugins=all $CONFIGURE_ARGS &&
26 make && make install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/share $fs/usr/lib
34 cp -a $install/usr/bin $fs/usr
35 cp -a $install/usr/lib/lxpanel $fs/usr/lib
36 cp -a $install/usr/share/lxpanel $fs/usr/share
38 # Remove a few "heavy" and unuseful images (ns* goes in extra)
39 for i in file-manager* stock_volume* gnome-[a-m]*.png \
40 gnome-netstatus-[d-t]*.png my-* ns-*.png *lock-*.png
41 do
42 rm $fs/usr/share/lxpanel/images/$i
43 done
45 # Custom images to match SliTaz theme.
46 cp -a stuff/images/* $fs/usr/share/lxpanel/images
48 # Remove plugins --> lxpanel-extra
49 rm $fs/usr/lib/lxpanel/plugins/kbled.so
50 rm -rf $fs/usr/share/lxpanel/images/xkb-flags
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
59 # lxsession-logout fake
60 cat > $fs/usr/bin/lxsession-logout << "EOT"
61 #!/bin/sh
62 # lxsession-logout fake.
63 #
64 tazbox logout &
65 exit 0
66 EOT
67 chmod +x $fs/usr/bin/lxsession-logout
68 }