wok view lxpanel/receipt @ rev 6420

Up: lirc, lirc-dev to 0.8.7.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Sep 26 17:58:27 2010 +0000 (2010-09-26)
parents 32cde9ab5311
children 556f2271529a
line source
1 # SliTaz package receipt.
3 PACKAGE="lxpanel"
4 VERSION="0.5.6"
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="$DEPENDS gtk+-dev gettext expat-dev intltool menu-cache-dev menu-cache \
12 alsa-lib-dev wireless_tools-dev wireless_tools zlib-dev"
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 #patch -p1 -i ../stuff/Fix-failure-to-react-to-keyboard-map-changes-initiat.patch
23 ./configure \
24 --prefix=/usr \
25 --sysconfdir=/etc \
26 --with-plugins=cpu,cpufreq,deskno,kbled,netstatus,thermal,volume,volumealsa,xkb \
27 $CONFIGURE_ARGS &&
28 make &&
29 make DESTDIR=$PWD/_pkg install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/share $fs/usr/lib
36 cp -a $_pkg/usr/bin $fs/usr
37 cp -a $_pkg/usr/lib/lxpanel $fs/usr/lib
38 cp -a $_pkg/usr/share/lxpanel $fs/usr/share
40 # Remove a few "heavy" and unuseful images (ns* goes in extra)
41 for i in file-manager* stock_volume* gnome-[a-m]*.png \
42 gnome-netstatus-[d-t]*.png my-* 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/kbled.so
53 # Move profile to /etc/lxpanel (/usr maybe read-only) and default config
54 mkdir $fs/etc
55 mv -f $fs/usr/share/lxpanel/profile $fs/etc/lxpanel
56 ln -s /etc/lxpanel $fs/usr/share/lxpanel/profile
57 mv $fs/etc/lxpanel/default $fs/etc/lxpanel/original
58 cp -a stuff/default $fs/etc/lxpanel
60 # lxsession-logout fake
61 cat > $fs/usr/bin/lxsession-logout << "EOT"
62 #!/bin/sh
63 # lxsession-logout fake.
64 #
65 desktopbox logout &
66 exit 0
67 EOT
68 chmod +x $fs/usr/bin/lxsession-logout
69 }