wok-6.x annotate lxpanel/receipt @ rev 610

Up: lxpanel (0.3.5) - Use new config UI and files
author Christophe Lincoln <pankso@slitaz.org>
date Fri Apr 18 18:18:08 2008 +0200 (2008-04-18)
parents ce6a7900a0ab
children 924a05471475
rev   line source
pankso@341 1 # SliTaz package receipt.
pankso@341 2
pankso@341 3 PACKAGE="lxpanel"
pankso@610 4 VERSION="0.3.5"
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 DEPENDS="gtk+ slitaz-menus"
pascal@434 9 BUILD_DEPENDS="gtk+-dev gettext"
pankso@341 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@341 11 WEB_SITE="http://lxde.sourceforge.net/"
pankso@341 12 WGET_URL="$SF_MIRROR/lxde/$TARBALL"
pankso@341 13
pankso@341 14 # Rules to configure and make the package.
pankso@341 15 compile_rules()
pankso@341 16 {
pankso@341 17 cd $src
pankso@464 18 # Patch the menu
pankso@610 19 patch -p0 < ../stuff/ptk-app-menu.patch || exit 1
pankso@610 20 patch -p0 < ../stuff/fr.patch || exit 1
pankso@341 21 ./configure \
pankso@341 22 --prefix=/usr \
pankso@610 23 --with-plugins=all \
pankso@341 24 $CONFIGURE_ARGS
pankso@341 25 make
pankso@341 26 make DESTDIR=$PWD/_pkg install
pankso@341 27 }
pankso@341 28
pankso@341 29 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@341 30 genpkg_rules()
pankso@341 31 {
pankso@341 32 mkdir -p $fs/usr/share
pankso@341 33 cp -a $_pkg/usr/bin $fs/usr
pankso@341 34 cp -a $_pkg/usr/lib $fs/usr
pankso@341 35 cp -a $_pkg/usr/share/lxpanel $fs/usr/share
pankso@468 36
pankso@341 37 # Remove a few "heavy" an unseful images
pankso@341 38 rm $fs/usr/share/lxpanel/images/*.svg
pankso@468 39
pascal@432 40 # Move profile to /etc/lxpanel (/usr maybe read-only)
pascal@433 41 mkdir $fs/etc
pascal@432 42 mv -f $fs/usr/share/lxpanel/profile $fs/etc/lxpanel
pascal@432 43 ln -s /etc/lxpanel $fs/usr/share/lxpanel/profile
pankso@468 44
pankso@468 45 # Default config
pankso@468 46 mv $fs/etc/lxpanel/default $fs/etc/lxpanel/original
pankso@468 47 cp -a stuff/default $fs/etc/lxpanel
pankso@341 48 }
pankso@341 49
pankso@610 50 # lxpanel logout calls lxsession-logout, not installed by default so
pankso@610 51 # fake.
pankso@610 52 post_install()
pankso@610 53 {
pankso@610 54 locale root
pankso@610 55 root=$1
pankso@610 56 if [ ! -f $root/usr/bin/lxsession-logout ]; then
pankso@610 57 cat > $root/usr/bin/lxsession-logout << "EOT"
pankso@610 58 #!/bin/sh
pankso@610 59 # lxsession-logout fake.
pankso@610 60 #
pankso@610 61 WM=`cat /etc/X11/wm.default`
pankso@610 62
pankso@610 63 case $WM in
pankso@610 64 jwm)
pankso@610 65 jwm -exit ;;
pankso@610 66 openbox)
pankso@610 67 openbox --exit ;;
pankso@610 68 esac
pankso@610 69 EOT
pankso@610 70 chmod +x $root/usr/bin/lxsession-logout
pankso@610 71 fi
pankso@610 72 }