wok-stable view lxpanel/receipt @ rev 9512
Up: libgio to 2.28.5.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Wed Apr 06 08:25:32 2011 +0000 (2011-04-06) |
parents | 97d26f546a4a |
children | 1011f515c592 |
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 DEPENDS="glibc-base glib libgio expat zlib menu-cache slitaz-icon \
9 gtk+ atk cairo fontconfig freetype pango pixman libpng alsa-lib \
10 xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXrender"
11 BUILD_DEPENDS="$DEPENDS gtk+-dev gettext expat-dev intltool menu-cache-dev menu-cache \
12 alsa-lib-dev wireless_tools-dev wireless_tools zlib-dev"
13 TARBALL="$PACKAGE-$VERSION.tar.gz"
14 WEB_SITE="http://www.lxde.org/"
15 WGET_URL="$SF_MIRROR/lxde/$TARBALL"
16 CONFIG_FILES="/etc/lxpanel/default"
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 \
28 --prefix=/usr \
29 --sysconfdir=/etc \
30 --with-plugins=all \
31 $CONFIGURE_ARGS &&
32 make &&
33 make DESTDIR=$PWD/_pkg install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/share $fs/usr/lib
40 cp -a $_pkg/usr/bin $fs/usr
41 cp -a $_pkg/usr/lib/lxpanel $fs/usr/lib
42 cp -a $_pkg/usr/share/lxpanel $fs/usr/share
44 # Remove a few "heavy" and unuseful images (ns* goes in extra)
45 for i in file-manager* stock_volume* gnome-[a-m]*.png \
46 gnome-netstatus-[d-t]*.png my-* ns-*.png *lock-*.png
47 do
48 rm $fs/usr/share/lxpanel/images/$i
49 done
51 # Custom images to match SliTaz theme.
52 cp -a stuff/images/* $fs/usr/share/lxpanel/images
54 # Remove plugins --> lxpanel-extra
55 rm $fs/usr/lib/lxpanel/plugins/kbled.so
56 rm -rf $fs/usr/share/lxpanel/images/xkb-flags
58 # Move profile to /etc/lxpanel (/usr maybe read-only) and default config
59 mkdir $fs/etc
60 mv -f $fs/usr/share/lxpanel/profile $fs/etc/lxpanel
61 ln -s /etc/lxpanel $fs/usr/share/lxpanel/profile
62 mv $fs/etc/lxpanel/default $fs/etc/lxpanel/original
63 cp -a stuff/default $fs/etc/lxpanel
65 # lxsession-logout fake
66 cat > $fs/usr/bin/lxsession-logout << "EOT"
67 #!/bin/sh
68 # lxsession-logout fake.
69 #
70 desktopbox logout &
71 exit 0
72 EOT
73 chmod +x $fs/usr/bin/lxsession-logout
74 }