wok view lxpanel/receipt @ rev 12340

libv4l: Needs jpeg-dev to compile.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Apr 19 09:41:34 2012 +0000 (2012-04-19)
parents 1134cd1d9d3c
children 15c8aa308268
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"
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 -p1 -i $stuff/batt.chg.level.patch
24 #patch -p1 -i $stuff/configure_desktop_number.patch
25 #patch -p1 -i $stuff/fix_position.patch
26 patch -p0 -i $stuff/cpu-size-color.patch || exit 1
27 ./configure --with-plugins=all $CONFIGURE_ARGS &&
28 make && make 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
36 cp -a $install/usr/bin $fs/usr
37 cp -a $install/usr/lib/lxpanel $fs/usr/lib
38 cp -a $install/usr/share/lxpanel $fs/usr/share
40 # Remove a few "heavy" and unuseful images (ns* goes in extra)
41 for i in file-manager* *volume* mute.png gnome-[a-m]*.png \
42 gnome-netstatus-*.png my-* ns-*.png *lock-*.png \
43 background.png window-manager.png
44 do
45 rm $fs/usr/share/lxpanel/images/$i
46 done
48 # Custom images to match SliTaz theme.
49 #cp -a stuff/images/* $fs/usr/share/lxpanel/images
51 # Remove plugins --> lxpanel-extra
52 rm $fs/usr/lib/lxpanel/plugins/kbled.so
53 rm -rf $fs/usr/share/lxpanel/images/xkb-flags
55 # Move profile to /etc/lxpanel (/usr maybe read-only) and default config
56 mkdir $fs/etc
57 mv -f $fs/usr/share/lxpanel/profile $fs/etc/lxpanel
58 ln -s /etc/lxpanel $fs/usr/share/lxpanel/profile
59 mv $fs/etc/lxpanel/default $fs/etc/lxpanel/original
60 cp -a $stuff/default $fs/etc/lxpanel
61 rm -rf $fs/etc/lxpanel/two_panels
63 # lxsession-logout fake
64 cat > $fs/usr/bin/lxsession-logout << "EOT"
65 #!/bin/sh
66 # lxsession-logout fake.
67 #
68 tazbox logout &
69 exit 0
70 EOT
71 chmod +x $fs/usr/bin/lxsession-logout
73 # Make images symlinks so it feet SliTaz theme
74 cd $fs/usr/share/lxpanel/images
75 ln -s /usr/share/icons/SliTaz/status/32/network-idle.png ns-connected.png
76 ln -s /usr/share/icons/SliTaz/status/32/network-offline.png ns-disconnect.png
77 ln -s /usr/share/icons/SliTaz/status/32/network-receive.png ns-recvdata.png
78 ln -s /usr/share/icons/SliTaz/status/32/network-receive.png ns-senddata.png
79 ln -s /usr/share/icons/SliTaz/status/32/nm-adhoc.png ns-bothrs.png
80 ln -s /usr/share/icons/SliTaz/status/32/network-error.png ns-problem.png
81 }