wok-next view lxpanel/receipt @ rev 4382
Add ht
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Oct 14 11:55:42 2009 +0200 (2009-10-14) |
parents | 7d6b9ead748f |
children | 827a9b65573d |
line source
1 # SliTaz package receipt.
3 PACKAGE="lxpanel"
4 VERSION="0.5.3"
5 CATEGORY="x-window"
6 SHORT_DESC="Standard compliant desktop panel."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="glibc-base glib libgio expat zlib menu-cache slitaz-icon \
9 gtk+ atk cairo fontconfig freetype pango pixman libpng alsa-lib \
10 xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXrender"
11 BUILD_DEPENDS="gtk+-dev gettext expat-dev intltool menu-cache-dev menu-cache \
12 alsa-lib-dev wireless_tools-dev wireless_tools"
13 TARBALL="$PACKAGE-$VERSION.tar.gz"
14 WEB_SITE="http://www.lxde.org/"
15 WGET_URL="$SF_MIRROR/lxde/$TARBALL"
16 CONFIG_FILES="/etc/lxpanel/default"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
22 ./configure \
23 --prefix=/usr \
24 --sysconfdir=/etc \
25 --with-plugins=all \
26 $CONFIGURE_ARGS &&
27 make &&
28 make DESTDIR=$PWD/_pkg install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/share $fs/usr/lib
35 cp -a $_pkg/usr/bin $fs/usr
36 cp -a $_pkg/usr/lib/lxpanel $fs/usr/lib
37 cp -a $_pkg/usr/share/lxpanel $fs/usr/share
39 # Remove a few "heavy" and unuseful images (ns* goes in extra)
40 for i in file-manager* stock_volume* gnome-[a-m]*.png \
41 gnome-netstatus-[d-t]*.png my-* ns-*.png *lock-*.png
42 do
43 rm $fs/usr/share/lxpanel/images/$i
44 done
46 # Custom images to match SliTaz theme.
47 cp -a stuff/images/* $fs/usr/share/lxpanel/images
49 # Remove plugins --> lxpanel-extra
50 rm $fs/usr/lib/lxpanel/plugins/kbled.so
52 # Move profile to /etc/lxpanel (/usr maybe read-only) and default config
53 mkdir $fs/etc
54 mv -f $fs/usr/share/lxpanel/profile $fs/etc/lxpanel
55 ln -s /etc/lxpanel $fs/usr/share/lxpanel/profile
56 mv $fs/etc/lxpanel/default $fs/etc/lxpanel/original
57 cp -a stuff/default $fs/etc/lxpanel
59 # lxsession-logout fake
60 cat > $fs/usr/bin/lxsession-logout << "EOT"
61 #!/bin/sh
62 # lxsession-logout fake.
63 #
64 desktopbox logout &
65 exit 0
66 EOT
67 chmod +x $fs/usr/bin/lxsession-logout
68 }