wok annotate lxpanel/receipt @ rev 10410

patch: Added cook_tmp_toolchain function to fix tazwok cook-toolchain.
author Christopher Rogers <slaxemulator@gmail.com>
date Tue May 24 07:02:00 2011 +0000 (2011-05-24)
parents d1768332cee0
children 8df8311113ac
rev   line source
pankso@341 1 # SliTaz package receipt.
pankso@341 2
pankso@341 3 PACKAGE="lxpanel"
slaxemulator@6419 4 VERSION="0.5.6"
pankso@341 5 CATEGORY="x-window"
pankso@341 6 SHORT_DESC="Standard compliant desktop panel."
pankso@341 7 MAINTAINER="pankso@slitaz.org"
pankso@341 8 TARBALL="$PACKAGE-$VERSION.tar.gz"
rcx@3799 9 WEB_SITE="http://www.lxde.org/"
pankso@341 10 WGET_URL="$SF_MIRROR/lxde/$TARBALL"
pascal@2563 11 CONFIG_FILES="/etc/lxpanel/default"
pankso@341 12
pankso@9694 13 DEPENDS="glibc-base glib libgio expat zlib menu-cache slitaz-icon \
pankso@9694 14 gtk+ atk cairo fontconfig freetype pango pixman libpng alsa-lib \
pankso@9694 15 xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXrender"
pankso@9694 16 BUILD_DEPENDS="$DEPENDS gtk+-dev gettext expat-dev intltool menu-cache-dev \
pankso@9901 17 lxmenu-data alsa-lib-dev wireless_tools-dev wireless_tools"
pankso@9694 18
pankso@341 19 # Rules to configure and make the package.
pankso@341 20 compile_rules()
pankso@341 21 {
pankso@341 22 cd $src
slaxemulator@9700 23 #patch -p1 -i $stuff/Fix-failure-to-react-to-keyboard-map-changes-initiat.patch
gokhlayeh@6423 24 # Devnote : this patch shouldn't be necessary in next release of lxpanel (current : 0.5.6).
pankso@9694 25 patch -p1 -i $stuff/battery-plugin.patch
slaxemulator@6590 26 # patch to fix 100% battery bug with battery plugin
pankso@9694 27 patch -p1 -i $stuff/battery.patch
pankso@9694 28 ./configure --with-plugins=all &&
pankso@9694 29 make && make install
pankso@341 30 }
pankso@341 31
pankso@341 32 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@341 33 genpkg_rules()
pankso@341 34 {
pankso@3960 35 mkdir -p $fs/usr/share $fs/usr/lib
pankso@9694 36
pankso@9694 37 cp -a $install/usr/bin $fs/usr
pankso@9694 38 cp -a $install/usr/lib/lxpanel $fs/usr/lib
pankso@9694 39 cp -a $install/usr/share/lxpanel $fs/usr/share
pankso@3808 40
rcx@3799 41 # Remove a few "heavy" and unuseful images (ns* goes in extra)
rcx@3799 42 for i in file-manager* stock_volume* gnome-[a-m]*.png \
pankso@3960 43 gnome-netstatus-[d-t]*.png my-* ns-*.png *lock-*.png
pankso@3093 44 do
pankso@3093 45 rm $fs/usr/share/lxpanel/images/$i
pankso@3093 46 done
pankso@3808 47
pankso@3093 48 # Custom images to match SliTaz theme.
pankso@3093 49 cp -a stuff/images/* $fs/usr/share/lxpanel/images
pankso@3808 50
pankso@799 51 # Remove plugins --> lxpanel-extra
pankso@799 52 rm $fs/usr/lib/lxpanel/plugins/kbled.so
pankso@9494 53 rm -rf $fs/usr/share/lxpanel/images/xkb-flags
pankso@3808 54
pankso@3093 55 # Move profile to /etc/lxpanel (/usr maybe read-only) and default config
pankso@671 56 mkdir $fs/etc
pankso@671 57 mv -f $fs/usr/share/lxpanel/profile $fs/etc/lxpanel
pankso@671 58 ln -s /etc/lxpanel $fs/usr/share/lxpanel/profile
pankso@671 59 mv $fs/etc/lxpanel/default $fs/etc/lxpanel/original
pankso@671 60 cp -a stuff/default $fs/etc/lxpanel
pankso@3808 61
pankso@3093 62 # lxsession-logout fake
pankso@3093 63 cat > $fs/usr/bin/lxsession-logout << "EOT"
pankso@610 64 #!/bin/sh
pankso@610 65 # lxsession-logout fake.
pankso@610 66 #
pankso@771 67 desktopbox logout &
pankso@771 68 exit 0
pankso@610 69 EOT
pascal@2088 70 chmod +x $fs/usr/bin/lxsession-logout
pankso@610 71 }