wok-current annotate lxpanel/receipt @ rev 653
lxpanel: add top panel for notification and misc improvement
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Apr 22 22:23:40 2008 +0200 (2008-04-22) |
parents | 4b565515822c |
children | c2f0c4bc32ae |
rev | line source |
---|---|
pankso@341 | 1 # SliTaz package receipt. |
pankso@341 | 2 |
pankso@341 | 3 PACKAGE="lxpanel" |
pankso@623 | 4 VERSION="0.3.5.2" |
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@623 | 38 rm $fs/usr/share/lxpanel/images/gnome-applications.png |
pankso@623 | 39 rm $fs/usr/share/lxpanel/images/gnome-devel.png |
pankso@623 | 40 rm $fs/usr/share/lxpanel/images/gnome-joystick.png |
pankso@623 | 41 rm $fs/usr/share/lxpanel/images/gnome-multimedia.png |
pankso@623 | 42 rm $fs/usr/share/lxpanel/images/gnome-g*.png |
pankso@623 | 43 rm $fs/usr/share/lxpanel/images/redhat*.png |
pankso@468 | 44 |
pascal@432 | 45 # Move profile to /etc/lxpanel (/usr maybe read-only) |
pascal@433 | 46 mkdir $fs/etc |
pascal@432 | 47 mv -f $fs/usr/share/lxpanel/profile $fs/etc/lxpanel |
pascal@432 | 48 ln -s /etc/lxpanel $fs/usr/share/lxpanel/profile |
pankso@468 | 49 |
pankso@468 | 50 # Default config |
pankso@468 | 51 mv $fs/etc/lxpanel/default $fs/etc/lxpanel/original |
pankso@468 | 52 cp -a stuff/default $fs/etc/lxpanel |
pankso@341 | 53 } |
pankso@341 | 54 |
pankso@610 | 55 # lxpanel logout calls lxsession-logout, not installed by default so |
pankso@610 | 56 # fake. |
pankso@610 | 57 post_install() |
pankso@610 | 58 { |
pankso@610 | 59 locale root |
pankso@610 | 60 root=$1 |
pankso@610 | 61 if [ ! -f $root/usr/bin/lxsession-logout ]; then |
pankso@610 | 62 cat > $root/usr/bin/lxsession-logout << "EOT" |
pankso@610 | 63 #!/bin/sh |
pankso@610 | 64 # lxsession-logout fake. |
pankso@610 | 65 # |
pankso@610 | 66 WM=`cat /etc/X11/wm.default` |
pankso@610 | 67 |
pankso@623 | 68 if [ "$WM" = "jwm" ]; then |
pankso@623 | 69 jwm -exit |
pankso@623 | 70 else |
pankso@623 | 71 openbox --exit |
pankso@623 | 72 fi |
pankso@623 | 73 |
pankso@610 | 74 EOT |
pankso@610 | 75 chmod +x $root/usr/bin/lxsession-logout |
pankso@610 | 76 fi |
pankso@610 | 77 } |