wok view lxpanel/receipt @ rev 1917

Add perl-unicode-map8
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Dec 22 09:12:54 2008 +0000 (2008-12-22)
parents 0331431853db
children 3eb54f608650
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"
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 }
72 # lxpanel logout calls lxsession-logout, not installed by default so
73 # fake.
74 post_install()
75 {
76 locale root
77 root=$1
78 if [ ! -s $root/usr/bin/lxsession-logout ]; then
79 cat > $root/usr/bin/lxsession-logout << "EOT"
80 #!/bin/sh
81 # lxsession-logout fake.
82 #
84 desktopbox logout &
85 exit 0
87 EOT
88 chmod +x $root/usr/bin/lxsession-logout
89 fi
90 }