wok view lxpanel/receipt @ rev 2668
Patch libmad-dev for mad.pc
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Sun Apr 19 09:59:44 2009 +0000 (2009-04-19) |
parents | 2e55de4816a6 |
children | c440f0b24bb4 |
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 xorg-libXdamage"
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"
13 CONFIG_FILES="/etc/lxpanel/default"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 # Patch the menu
20 for i in ptk-app-menu.patch fr.patch ; do
21 [ -f done.$i ] && continue
22 patch -p0 < ../stuff/$i || exit 1
23 touch done.$i
24 done
25 ./configure \
26 --prefix=/usr \
27 --with-plugins=all \
28 $CONFIGURE_ARGS &&
29 make &&
30 make DESTDIR=$PWD/_pkg install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/share
37 cp -a $_pkg/usr/bin $fs/usr
38 cp -a $_pkg/usr/lib $fs/usr
39 cp -a $_pkg/usr/share/lxpanel $fs/usr/share
41 # Remove a few "heavy" an unseful images (ns* goes in extra)
42 rm $fs/usr/share/lxpanel/images/file-manager.png
43 rm $fs/usr/share/lxpanel/images/stock_volume.png
44 rm $fs/usr/share/lxpanel/images/gnome-[a-k]*.png
45 rm $fs/usr/share/lxpanel/images/gnome-netstatus-[d-t]*.png
46 rm $fs/usr/share/lxpanel/images/gnome-m*.png
47 rm $fs/usr/share/lxpanel/images/gnome-[o-z]*.png
48 rm $fs/usr/share/lxpanel/images/my-*
49 rm $fs/usr/share/lxpanel/images/redhat*.png
50 rm $fs/usr/share/lxpanel/images/ns-*.png
51 rm $fs/usr/share/lxpanel/images/*lock-*.png
53 # Netstatus 24x24 resized icons in Tango theme path.
54 cp -a stuff/icons $fs/usr/share
56 # Remove plugins --> lxpanel-extra
57 rm $fs/usr/lib/lxpanel/plugins/netstat.so
58 rm $fs/usr/lib/lxpanel/plugins/kbled.so
60 # Move profile to /etc/lxpanel (/usr maybe read-only)
61 mkdir $fs/etc
62 mv -f $fs/usr/share/lxpanel/profile $fs/etc/lxpanel
63 ln -s /etc/lxpanel $fs/usr/share/lxpanel/profile
65 # Default config
66 mv $fs/etc/lxpanel/default $fs/etc/lxpanel/original
67 cp -a stuff/default $fs/etc/lxpanel
69 # Declare lxsession-logout in files.list
70 touch $fs/usr/bin/lxsession-logout
71 if [ ! -s $fs/usr/bin/lxsession-logout ]; then
72 cat > $fs/usr/bin/lxsession-logout << "EOT"
73 #!/bin/sh
74 # lxsession-logout fake.
75 #
77 desktopbox logout &
78 exit 0
80 EOT
81 fi
82 chmod +x $fs/usr/bin/lxsession-logout
83 }