wok view lxpanel/receipt @ rev 12197

apache: add default value for certificate
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 26 16:24:33 2012 +0200 (2012-03-26)
parents 8eb408167604
children 6a1c389593ae
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/batt.chg.level.patch
23 patch -p1 -i $stuff/configure_desktop_number.patch
24 patch -p1 -i $stuff/fix_position.patch
25 patch -p0 -i $stuff/cpu-size-color.patch || exit 1
26 ./configure --with-plugins=all $CONFIGURE_ARGS &&
27 make && make install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/share $fs/usr/lib
35 cp -a $install/usr/bin $fs/usr
36 cp -a $install/usr/lib/lxpanel $fs/usr/lib
37 cp -a $install/usr/share/lxpanel $fs/usr/share
39 # Remove a few "heavy" and unuseful images (ns* goes in extra)
40 for i in file-manager* stock_volume* gnome-[a-m]*.png \
41 gnome-netstatus-[d-t]*.png my-* ns-*.png *lock-*.png
42 do
43 rm $fs/usr/share/lxpanel/images/$i
44 done
46 # Custom images to match SliTaz theme.
47 cp -a stuff/images/* $fs/usr/share/lxpanel/images
49 # Remove plugins --> lxpanel-extra
50 rm $fs/usr/lib/lxpanel/plugins/kbled.so
51 rm -rf $fs/usr/share/lxpanel/images/xkb-flags
53 # Move profile to /etc/lxpanel (/usr maybe read-only) and default config
54 mkdir $fs/etc
55 mv -f $fs/usr/share/lxpanel/profile $fs/etc/lxpanel
56 ln -s /etc/lxpanel $fs/usr/share/lxpanel/profile
57 mv $fs/etc/lxpanel/default $fs/etc/lxpanel/original
58 cp -a stuff/default $fs/etc/lxpanel
60 # lxsession-logout fake
61 cat > $fs/usr/bin/lxsession-logout << "EOT"
62 #!/bin/sh
63 # lxsession-logout fake.
64 #
65 tazbox logout &
66 exit 0
67 EOT
68 chmod +x $fs/usr/bin/lxsession-logout
69 }