wok-current view lxpanel/receipt @ rev 2502

gnutls: typo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 16 11:45:33 2009 +0000 (2009-03-16)
parents 3eb54f608650
children 2e55de4816a6
line source
1 # SliTaz package receipt.
3 PACKAGE="lxpanel"
4 VERSION="0.3.8.1"
5 CATEGORY="x-window"
6 SHORT_DESC="Standard compliant desktop panel."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="gtk+ slitaz-menus alsa-lib"
9 BUILD_DEPENDS="gtk+-dev gettext wireless_tools-dev wireless_tools"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://lxde.sourceforge.net/"
12 WGET_URL="$SF_MIRROR/lxde/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 # Patch the menu
19 for i in ptk-app-menu.patch fr.patch ; do
20 [ -f done.$i ] && continue
21 patch -p0 < ../stuff/$i || exit 1
22 touch done.$i
23 done
24 ./configure \
25 --prefix=/usr \
26 --with-plugins=all \
27 $CONFIGURE_ARGS &&
28 make &&
29 make DESTDIR=$PWD/_pkg install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/share
36 cp -a $_pkg/usr/bin $fs/usr
37 cp -a $_pkg/usr/lib $fs/usr
38 cp -a $_pkg/usr/share/lxpanel $fs/usr/share
40 # Remove a few "heavy" an unseful images (ns* goes in extra)
41 rm $fs/usr/share/lxpanel/images/file-manager.png
42 rm $fs/usr/share/lxpanel/images/stock_volume.png
43 rm $fs/usr/share/lxpanel/images/gnome-[a-k]*.png
44 rm $fs/usr/share/lxpanel/images/gnome-netstatus-[d-t]*.png
45 rm $fs/usr/share/lxpanel/images/gnome-m*.png
46 rm $fs/usr/share/lxpanel/images/gnome-[o-z]*.png
47 rm $fs/usr/share/lxpanel/images/my-*
48 rm $fs/usr/share/lxpanel/images/redhat*.png
49 rm $fs/usr/share/lxpanel/images/ns-*.png
50 rm $fs/usr/share/lxpanel/images/*lock-*.png
52 # Netstatus 24x24 resized icons in Tango theme path.
53 cp -a stuff/icons $fs/usr/share
55 # Remove plugins --> lxpanel-extra
56 rm $fs/usr/lib/lxpanel/plugins/netstat.so
57 rm $fs/usr/lib/lxpanel/plugins/kbled.so
59 # Move profile to /etc/lxpanel (/usr maybe read-only)
60 mkdir $fs/etc
61 mv -f $fs/usr/share/lxpanel/profile $fs/etc/lxpanel
62 ln -s /etc/lxpanel $fs/usr/share/lxpanel/profile
64 # Default config
65 mv $fs/etc/lxpanel/default $fs/etc/lxpanel/original
66 cp -a stuff/default $fs/etc/lxpanel
68 # Declare lxsession-logout in files.list
69 touch $fs/usr/bin/lxsession-logout
70 if [ ! -s $fs/usr/bin/lxsession-logout ]; then
71 cat > $fs/usr/bin/lxsession-logout << "EOT"
72 #!/bin/sh
73 # lxsession-logout fake.
74 #
76 desktopbox logout &
77 exit 0
79 EOT
80 fi
81 chmod +x $fs/usr/bin/lxsession-logout
82 }