wok-next annotate lxpanel/receipt @ rev 2797
Up: Firefox (3.0.10)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Apr 28 18:37:24 2009 +0200 (2009-04-28) |
parents | 2e55de4816a6 |
children | c440f0b24bb4 |
rev | line source |
---|---|
pankso@341 | 1 # SliTaz package receipt. |
pankso@341 | 2 |
pankso@341 | 3 PACKAGE="lxpanel" |
pankso@1015 | 4 VERSION="0.3.8.1" |
pankso@341 | 5 CATEGORY="x-window" |
pankso@341 | 6 SHORT_DESC="Standard compliant desktop panel." |
pankso@341 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@2518 | 8 DEPENDS="gtk+ slitaz-menus alsa-lib xorg-libXdamage" |
pascal@1549 | 9 BUILD_DEPENDS="gtk+-dev gettext wireless_tools-dev wireless_tools" |
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" |
pascal@2563 | 13 CONFIG_FILES="/etc/lxpanel/default" |
pankso@341 | 14 |
pankso@341 | 15 # Rules to configure and make the package. |
pankso@341 | 16 compile_rules() |
pankso@341 | 17 { |
pankso@341 | 18 cd $src |
pankso@464 | 19 # Patch the menu |
pascal@1469 | 20 for i in ptk-app-menu.patch fr.patch ; do |
pascal@1469 | 21 [ -f done.$i ] && continue |
pascal@1469 | 22 patch -p0 < ../stuff/$i || exit 1 |
pascal@1469 | 23 touch done.$i |
pascal@1469 | 24 done |
pankso@341 | 25 ./configure \ |
pankso@341 | 26 --prefix=/usr \ |
pankso@610 | 27 --with-plugins=all \ |
pascal@1469 | 28 $CONFIGURE_ARGS && |
pascal@1469 | 29 make && |
pankso@341 | 30 make DESTDIR=$PWD/_pkg install |
pankso@341 | 31 } |
pankso@341 | 32 |
pankso@341 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@341 | 34 genpkg_rules() |
pankso@341 | 35 { |
pankso@671 | 36 mkdir -p $fs/usr/share |
pankso@671 | 37 cp -a $_pkg/usr/bin $fs/usr |
pankso@671 | 38 cp -a $_pkg/usr/lib $fs/usr |
pankso@671 | 39 cp -a $_pkg/usr/share/lxpanel $fs/usr/share |
pankso@671 | 40 |
pankso@799 | 41 # Remove a few "heavy" an unseful images (ns* goes in extra) |
pankso@671 | 42 rm $fs/usr/share/lxpanel/images/file-manager.png |
pankso@799 | 43 rm $fs/usr/share/lxpanel/images/stock_volume.png |
pankso@799 | 44 rm $fs/usr/share/lxpanel/images/gnome-[a-k]*.png |
pankso@799 | 45 rm $fs/usr/share/lxpanel/images/gnome-netstatus-[d-t]*.png |
pankso@799 | 46 rm $fs/usr/share/lxpanel/images/gnome-m*.png |
pankso@799 | 47 rm $fs/usr/share/lxpanel/images/gnome-[o-z]*.png |
pankso@671 | 48 rm $fs/usr/share/lxpanel/images/my-* |
pankso@671 | 49 rm $fs/usr/share/lxpanel/images/redhat*.png |
pankso@732 | 50 rm $fs/usr/share/lxpanel/images/ns-*.png |
pankso@799 | 51 rm $fs/usr/share/lxpanel/images/*lock-*.png |
pankso@799 | 52 |
pankso@799 | 53 # Netstatus 24x24 resized icons in Tango theme path. |
pankso@799 | 54 cp -a stuff/icons $fs/usr/share |
pankso@799 | 55 |
pankso@799 | 56 # Remove plugins --> lxpanel-extra |
pankso@799 | 57 rm $fs/usr/lib/lxpanel/plugins/netstat.so |
pankso@799 | 58 rm $fs/usr/lib/lxpanel/plugins/kbled.so |
pankso@671 | 59 |
pankso@671 | 60 # Move profile to /etc/lxpanel (/usr maybe read-only) |
pankso@671 | 61 mkdir $fs/etc |
pankso@671 | 62 mv -f $fs/usr/share/lxpanel/profile $fs/etc/lxpanel |
pankso@671 | 63 ln -s /etc/lxpanel $fs/usr/share/lxpanel/profile |
pankso@671 | 64 |
pankso@671 | 65 # Default config |
pankso@671 | 66 mv $fs/etc/lxpanel/default $fs/etc/lxpanel/original |
pankso@671 | 67 cp -a stuff/default $fs/etc/lxpanel |
pankso@799 | 68 |
pascal@690 | 69 # Declare lxsession-logout in files.list |
pascal@690 | 70 touch $fs/usr/bin/lxsession-logout |
pascal@2088 | 71 if [ ! -s $fs/usr/bin/lxsession-logout ]; then |
pascal@2088 | 72 cat > $fs/usr/bin/lxsession-logout << "EOT" |
pankso@610 | 73 #!/bin/sh |
pankso@610 | 74 # lxsession-logout fake. |
pankso@610 | 75 # |
pankso@610 | 76 |
pankso@771 | 77 desktopbox logout & |
pankso@771 | 78 exit 0 |
pankso@623 | 79 |
pankso@610 | 80 EOT |
pankso@610 | 81 fi |
pascal@2088 | 82 chmod +x $fs/usr/bin/lxsession-logout |
pankso@610 | 83 } |