wok view lxpanel/receipt @ rev 1300

busybox/tar: -j -a -z -Z support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Aug 22 15:27:31 2008 +0000 (2008-08-22)
parents e32d9b79d6fd
children 0331431853db
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"
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 patch -p0 < ../stuff/ptk-app-menu.patch || exit 1
20 patch -p0 < ../stuff/fr.patch || exit 1
21 ./configure \
22 --prefix=/usr \
23 --with-plugins=all \
24 $CONFIGURE_ARGS
25 make
26 make DESTDIR=$PWD/_pkg install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/share
33 cp -a $_pkg/usr/bin $fs/usr
34 cp -a $_pkg/usr/lib $fs/usr
35 cp -a $_pkg/usr/share/lxpanel $fs/usr/share
37 # Remove a few "heavy" an unseful images (ns* goes in extra)
38 rm $fs/usr/share/lxpanel/images/file-manager.png
39 rm $fs/usr/share/lxpanel/images/stock_volume.png
40 rm $fs/usr/share/lxpanel/images/gnome-[a-k]*.png
41 rm $fs/usr/share/lxpanel/images/gnome-netstatus-[d-t]*.png
42 rm $fs/usr/share/lxpanel/images/gnome-m*.png
43 rm $fs/usr/share/lxpanel/images/gnome-[o-z]*.png
44 rm $fs/usr/share/lxpanel/images/my-*
45 rm $fs/usr/share/lxpanel/images/redhat*.png
46 rm $fs/usr/share/lxpanel/images/ns-*.png
47 rm $fs/usr/share/lxpanel/images/*lock-*.png
49 # Netstatus 24x24 resized icons in Tango theme path.
50 cp -a stuff/icons $fs/usr/share
52 # Remove plugins --> lxpanel-extra
53 rm $fs/usr/lib/lxpanel/plugins/netstat.so
54 rm $fs/usr/lib/lxpanel/plugins/kbled.so
56 # Move profile to /etc/lxpanel (/usr maybe read-only)
57 mkdir $fs/etc
58 mv -f $fs/usr/share/lxpanel/profile $fs/etc/lxpanel
59 ln -s /etc/lxpanel $fs/usr/share/lxpanel/profile
61 # Default config
62 mv $fs/etc/lxpanel/default $fs/etc/lxpanel/original
63 cp -a stuff/default $fs/etc/lxpanel
65 # Declare lxsession-logout in files.list
66 touch $fs/usr/bin/lxsession-logout
67 }
69 # lxpanel logout calls lxsession-logout, not installed by default so
70 # fake.
71 post_install()
72 {
73 locale root
74 root=$1
75 if [ ! -s $root/usr/bin/lxsession-logout ]; then
76 cat > $root/usr/bin/lxsession-logout << "EOT"
77 #!/bin/sh
78 # lxsession-logout fake.
79 #
81 desktopbox logout &
82 exit 0
84 EOT
85 chmod +x $root/usr/bin/lxsession-logout
86 fi
87 }