wok-current view lxpanel/receipt @ rev 10418
m4: Added cook_tmp_toolchain function to fix tazwok cook-toolchain.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Tue May 24 08:08:39 2011 +0000 (2011-05-24) |
parents | d1768332cee0 |
children | 8df8311113ac |
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+ atk cairo fontconfig freetype pango pixman libpng alsa-lib \
15 xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXrender"
16 BUILD_DEPENDS="$DEPENDS gtk+-dev gettext expat-dev intltool menu-cache-dev \
17 lxmenu-data alsa-lib-dev wireless_tools-dev wireless_tools"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $src
23 #patch -p1 -i $stuff/Fix-failure-to-react-to-keyboard-map-changes-initiat.patch
24 # Devnote : this patch shouldn't be necessary in next release of lxpanel (current : 0.5.6).
25 patch -p1 -i $stuff/battery-plugin.patch
26 # patch to fix 100% battery bug with battery plugin
27 patch -p1 -i $stuff/battery.patch
28 ./configure --with-plugins=all &&
29 make && make install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/share $fs/usr/lib
37 cp -a $install/usr/bin $fs/usr
38 cp -a $install/usr/lib/lxpanel $fs/usr/lib
39 cp -a $install/usr/share/lxpanel $fs/usr/share
41 # Remove a few "heavy" and unuseful images (ns* goes in extra)
42 for i in file-manager* stock_volume* gnome-[a-m]*.png \
43 gnome-netstatus-[d-t]*.png my-* ns-*.png *lock-*.png
44 do
45 rm $fs/usr/share/lxpanel/images/$i
46 done
48 # Custom images to match SliTaz theme.
49 cp -a stuff/images/* $fs/usr/share/lxpanel/images
51 # Remove plugins --> lxpanel-extra
52 rm $fs/usr/lib/lxpanel/plugins/kbled.so
53 rm -rf $fs/usr/share/lxpanel/images/xkb-flags
55 # Move profile to /etc/lxpanel (/usr maybe read-only) and default config
56 mkdir $fs/etc
57 mv -f $fs/usr/share/lxpanel/profile $fs/etc/lxpanel
58 ln -s /etc/lxpanel $fs/usr/share/lxpanel/profile
59 mv $fs/etc/lxpanel/default $fs/etc/lxpanel/original
60 cp -a stuff/default $fs/etc/lxpanel
62 # lxsession-logout fake
63 cat > $fs/usr/bin/lxsession-logout << "EOT"
64 #!/bin/sh
65 # lxsession-logout fake.
66 #
67 desktopbox logout &
68 exit 0
69 EOT
70 chmod +x $fs/usr/bin/lxsession-logout
71 }