wok-next annotate lxpanel/receipt @ rev 3808

Up: lxpanel (0.5.2)
author Christophe Lincoln <pankso@slitaz.org>
date Wed Aug 05 22:25:23 2009 +0200 (2009-08-05)
parents 7bde7b5b965d
children 7d6b9ead748f
rev   line source
pankso@341 1 # SliTaz package receipt.
pankso@341 2
pankso@341 3 PACKAGE="lxpanel"
pankso@3808 4 VERSION="0.5.2"
pankso@341 5 CATEGORY="x-window"
pankso@341 6 SHORT_DESC="Standard compliant desktop panel."
pankso@341 7 MAINTAINER="pankso@slitaz.org"
rcx@3799 8 DEPENDS="glibc-base glib libgio expat zlib menu-cache lxmenu-data 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"
rcx@3799 11 BUILD_DEPENDS="gtk+-dev gettext expat-dev intltool menu-cache-dev menu-cache \
rcx@3799 12 alsa-lib-dev wireless_tools-dev wireless_tools"
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
pankso@341 22 ./configure \
pankso@341 23 --prefix=/usr \
rcx@3799 24 --sysconfdir=/etc \
pankso@610 25 --with-plugins=all \
pascal@1469 26 $CONFIGURE_ARGS &&
pascal@1469 27 make &&
pankso@341 28 make DESTDIR=$PWD/_pkg install
pankso@341 29 }
pankso@341 30
pankso@341 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@341 32 genpkg_rules()
pankso@341 33 {
pankso@671 34 mkdir -p $fs/usr/share
pankso@671 35 cp -a $_pkg/usr/bin $fs/usr
pankso@671 36 cp -a $_pkg/usr/lib $fs/usr
pankso@671 37 cp -a $_pkg/usr/share/lxpanel $fs/usr/share
pankso@3808 38
rcx@3799 39 # Remove a few "heavy" and unuseful images (ns* goes in extra)
rcx@3799 40 for i in file-manager* stock_volume* gnome-[a-m]*.png \
rcx@3799 41 gnome-netstatus-[d-t]*.png gnome-[o-z]*.png my-* \
rcx@3799 42 ns-*.png *lock-*.png
pankso@3093 43 do
pankso@3093 44 rm $fs/usr/share/lxpanel/images/$i
pankso@3093 45 done
pankso@3808 46
pankso@3093 47 # Custom images to match SliTaz theme.
pankso@3093 48 cp -a stuff/images/* $fs/usr/share/lxpanel/images
pankso@3808 49
pankso@799 50 # Remove plugins --> lxpanel-extra
pankso@799 51 rm $fs/usr/lib/lxpanel/plugins/netstat.so
pankso@799 52 rm $fs/usr/lib/lxpanel/plugins/kbled.so
pankso@3808 53
pankso@3093 54 # Move profile to /etc/lxpanel (/usr maybe read-only) and default config
pankso@671 55 mkdir $fs/etc
pankso@671 56 mv -f $fs/usr/share/lxpanel/profile $fs/etc/lxpanel
pankso@671 57 ln -s /etc/lxpanel $fs/usr/share/lxpanel/profile
pankso@671 58 mv $fs/etc/lxpanel/default $fs/etc/lxpanel/original
pankso@671 59 cp -a stuff/default $fs/etc/lxpanel
pankso@3808 60
pankso@3093 61 # lxsession-logout fake
pankso@3093 62 cat > $fs/usr/bin/lxsession-logout << "EOT"
pankso@610 63 #!/bin/sh
pankso@610 64 # lxsession-logout fake.
pankso@610 65 #
pankso@771 66 desktopbox logout &
pankso@771 67 exit 0
pankso@610 68 EOT
pascal@2088 69 chmod +x $fs/usr/bin/lxsession-logout
pankso@610 70 }