wok-stable view lxpanel/receipt @ rev 3930
Update: binutils (toolprefixed binaries with default binutil symlinks; needed for builds expecting toolprefixed binutil binaries when a target platform [e.g. i486-pc-linux-gnu] is specified)
author | Matthew Sheets <rcx@zoominternet.net> |
---|---|
date | Wed Aug 19 16:02:07 2009 +0000 (2009-08-19) |
parents | 6e81a6ca8584 |
children | 73ef290455ef |
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 lxmenu-data 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
35 cp -a $_pkg/usr/bin $fs/usr
36 cp -a $_pkg/usr/lib $fs/usr
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 gnome-[o-z]*.png my-* \
42 ns-*.png *lock-*.png
43 do
44 rm $fs/usr/share/lxpanel/images/$i
45 done
47 # Custom images to match SliTaz theme.
48 cp -a stuff/images/* $fs/usr/share/lxpanel/images
50 # Remove plugins --> lxpanel-extra
51 rm $fs/usr/lib/lxpanel/plugins/netstat.so
52 rm $fs/usr/lib/lxpanel/plugins/kbled.so
54 # Move profile to /etc/lxpanel (/usr maybe read-only) and default config
55 mkdir $fs/etc
56 mv -f $fs/usr/share/lxpanel/profile $fs/etc/lxpanel
57 ln -s /etc/lxpanel $fs/usr/share/lxpanel/profile
58 mv $fs/etc/lxpanel/default $fs/etc/lxpanel/original
59 cp -a stuff/default $fs/etc/lxpanel
61 # lxsession-logout fake
62 cat > $fs/usr/bin/lxsession-logout << "EOT"
63 #!/bin/sh
64 # lxsession-logout fake.
65 #
66 desktopbox logout &
67 exit 0
68 EOT
69 chmod +x $fs/usr/bin/lxsession-logout
70 }