wok view lxpanel/receipt @ rev 3317

add pv | pipe viewer for unix
author Allan Pinto <allan316@gmail.com>
date Mon Jun 08 11:02:28 2009 +0000 (2009-06-08)
parents c440f0b24bb4
children f8d9b6cee57b
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 slitaz-icon"
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 for i in file-manager* stock_volume* gnome-[a-k]*.png gnome-m*.png \
43 gnome-netstatus-[d-t]*.png gnome-[o-z]*.png my-* redhat*.png \
44 ns-*.png *lock-*.png gnome-logout.png
45 do
46 rm $fs/usr/share/lxpanel/images/$i
47 done
49 # Custom images to match SliTaz theme.
50 cp -a stuff/images/* $fs/usr/share/lxpanel/images
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) and default config
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
60 mv $fs/etc/lxpanel/default $fs/etc/lxpanel/original
61 cp -a stuff/default $fs/etc/lxpanel
63 # lxsession-logout fake
64 cat > $fs/usr/bin/lxsession-logout << "EOT"
65 #!/bin/sh
66 # lxsession-logout fake.
67 #
68 desktopbox logout &
69 exit 0
70 EOT
71 chmod +x $fs/usr/bin/lxsession-logout
72 }