wok-next annotate lxpanel/receipt @ rev 8358

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