wok-current annotate lxpanel/receipt @ rev 1469
lxpanel: apply patch once
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Oct 04 11:57:29 2008 +0000 (2008-10-04) |
parents | 43a7e925b29c |
children | 3e877d5724e8 |
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" |
pankso@341 | 8 DEPENDS="gtk+ slitaz-menus" |
pankso@799 | 9 BUILD_DEPENDS="gtk+-dev gettext wireless_tools-dev" |
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 |
pascal@1469 | 19 for i in ptk-app-menu.patch fr.patch ; do |
pascal@1469 | 20 [ -f done.$i ] && continue |
pascal@1469 | 21 patch -p0 < ../stuff/$i || exit 1 |
pascal@1469 | 22 touch done.$i |
pascal@1469 | 23 done |
pankso@341 | 24 ./configure \ |
pankso@341 | 25 --prefix=/usr \ |
pankso@610 | 26 --with-plugins=all \ |
pascal@1469 | 27 $CONFIGURE_ARGS && |
pascal@1469 | 28 make && |
pankso@341 | 29 make DESTDIR=$PWD/_pkg install |
pankso@341 | 30 } |
pankso@341 | 31 |
pankso@341 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@341 | 33 genpkg_rules() |
pankso@341 | 34 { |
pankso@671 | 35 mkdir -p $fs/usr/share |
pankso@671 | 36 cp -a $_pkg/usr/bin $fs/usr |
pankso@671 | 37 cp -a $_pkg/usr/lib $fs/usr |
pankso@671 | 38 cp -a $_pkg/usr/share/lxpanel $fs/usr/share |
pankso@671 | 39 |
pankso@799 | 40 # Remove a few "heavy" an unseful images (ns* goes in extra) |
pankso@671 | 41 rm $fs/usr/share/lxpanel/images/file-manager.png |
pankso@799 | 42 rm $fs/usr/share/lxpanel/images/stock_volume.png |
pankso@799 | 43 rm $fs/usr/share/lxpanel/images/gnome-[a-k]*.png |
pankso@799 | 44 rm $fs/usr/share/lxpanel/images/gnome-netstatus-[d-t]*.png |
pankso@799 | 45 rm $fs/usr/share/lxpanel/images/gnome-m*.png |
pankso@799 | 46 rm $fs/usr/share/lxpanel/images/gnome-[o-z]*.png |
pankso@671 | 47 rm $fs/usr/share/lxpanel/images/my-* |
pankso@671 | 48 rm $fs/usr/share/lxpanel/images/redhat*.png |
pankso@732 | 49 rm $fs/usr/share/lxpanel/images/ns-*.png |
pankso@799 | 50 rm $fs/usr/share/lxpanel/images/*lock-*.png |
pankso@799 | 51 |
pankso@799 | 52 # Netstatus 24x24 resized icons in Tango theme path. |
pankso@799 | 53 cp -a stuff/icons $fs/usr/share |
pankso@799 | 54 |
pankso@799 | 55 # Remove plugins --> lxpanel-extra |
pankso@799 | 56 rm $fs/usr/lib/lxpanel/plugins/netstat.so |
pankso@799 | 57 rm $fs/usr/lib/lxpanel/plugins/kbled.so |
pankso@671 | 58 |
pankso@671 | 59 # Move profile to /etc/lxpanel (/usr maybe read-only) |
pankso@671 | 60 mkdir $fs/etc |
pankso@671 | 61 mv -f $fs/usr/share/lxpanel/profile $fs/etc/lxpanel |
pankso@671 | 62 ln -s /etc/lxpanel $fs/usr/share/lxpanel/profile |
pankso@671 | 63 |
pankso@671 | 64 # Default config |
pankso@671 | 65 mv $fs/etc/lxpanel/default $fs/etc/lxpanel/original |
pankso@671 | 66 cp -a stuff/default $fs/etc/lxpanel |
pankso@799 | 67 |
pascal@690 | 68 # Declare lxsession-logout in files.list |
pascal@690 | 69 touch $fs/usr/bin/lxsession-logout |
pankso@341 | 70 } |
pankso@341 | 71 |
pankso@610 | 72 # lxpanel logout calls lxsession-logout, not installed by default so |
pankso@610 | 73 # fake. |
pankso@610 | 74 post_install() |
pankso@610 | 75 { |
pankso@610 | 76 locale root |
pankso@610 | 77 root=$1 |
pascal@692 | 78 if [ ! -s $root/usr/bin/lxsession-logout ]; then |
pankso@610 | 79 cat > $root/usr/bin/lxsession-logout << "EOT" |
pankso@610 | 80 #!/bin/sh |
pankso@610 | 81 # lxsession-logout fake. |
pankso@610 | 82 # |
pankso@610 | 83 |
pankso@771 | 84 desktopbox logout & |
pankso@771 | 85 exit 0 |
pankso@623 | 86 |
pankso@610 | 87 EOT |
pankso@610 | 88 chmod +x $root/usr/bin/lxsession-logout |
pankso@610 | 89 fi |
pankso@610 | 90 } |