wok view lxpanel/receipt @ rev 13103

Up: raptor to 2.0.7.
author Christopher Rogers <slaxemulator@gmail.com>
date Tue Jun 26 18:36:55 2012 +0000 (2012-06-26)
parents 15c8aa308268
children 0b73c72d760b
line source
1 # SliTaz package receipt.
3 PACKAGE="lxpanel"
4 VERSION="0.5.9"
5 CATEGORY="x-window"
6 SHORT_DESC="Standard compliant desktop panel."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.lxde.org/"
10 #WGET_URL="$SF_MIRROR/lxde/$TARBALL"
11 WGET_URL="http://l10n.bsnet.se/~brother/lxde_releases/$TARBALL"
12 CONFIG_FILES="/etc/lxpanel/default"
14 DEPENDS="glibc-base glib libgio expat zlib menu-cache slitaz-icon \
15 gtk+ alsa-lib wireless_tools libwnck lxsession"
16 BUILD_DEPENDS="gtk+-dev gettext expat-dev intltool menu-cache-dev \
17 lxmenu-data alsa-lib-dev wireless_tools-dev libwnck-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $src
23 patch -p0 -i $stuff/cpu-size-color.patch || exit 1
24 ./configure --with-plugins=all $CONFIGURE_ARGS &&
25 make && make install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr/share $fs/usr/lib $fs/etc/xdg
33 cp -a $install/usr/bin $fs/usr
34 cp -a $install/usr/lib/lxpanel $fs/usr/lib
35 cp -a $install/usr/share/lxpanel $fs/usr/share
37 # Remove a few "heavy" and unuseful images (ns* goes in extra)
38 for i in file-manager* *volume* mute.png gnome-[a-m]*.png \
39 gnome-netstatus-*.png my-* ns-*.png *lock-*.png \
40 background.png window-manager.png
41 do
42 rm $fs/usr/share/lxpanel/images/$i
43 done
45 # Remove plugins --> lxpanel-extra
46 rm $fs/usr/lib/lxpanel/plugins/kbled.so
47 rm -rf $fs/usr/share/lxpanel/images/xkb-flags
49 # Move profile to /etc/lxpanel (/usr maybe read-only) and default config
50 mkdir $fs/etc
51 mv -f $fs/usr/share/lxpanel/profile $fs/etc/lxpanel
52 ln -s /etc/lxpanel $fs/usr/share/lxpanel/profile
53 mv $fs/etc/lxpanel/default $fs/etc/lxpanel/original
54 cp -a $stuff/default $fs/etc/lxpanel
55 rm -rf $fs/etc/lxpanel/two_panels
57 # XDG autostart desktop file (lxsession will use it automaticaly)
58 cp -a $stuff/autostart $fs/etc/xdg
60 # Make images symlinks so it feet SliTaz theme
61 cd $fs/usr/share/lxpanel/images
62 ln -s /usr/share/icons/SliTaz/status/32/network-idle.png ns-connected.png
63 ln -s /usr/share/icons/SliTaz/status/32/network-offline.png ns-disconnect.png
64 ln -s /usr/share/icons/SliTaz/status/32/network-receive.png ns-recvdata.png
65 ln -s /usr/share/icons/SliTaz/status/32/network-receive.png ns-senddata.png
66 ln -s /usr/share/icons/SliTaz/status/32/nm-adhoc.png ns-bothrs.png
67 ln -s /usr/share/icons/SliTaz/status/32/network-error.png ns-problem.png
68 }