wok-6.x annotate lxpanel/receipt @ rev 3354
Childsplay: fix stuff/INSTALL.sh.patch
author | Claudinei Pereira <claudinei@slitaz.org> |
---|---|
date | Thu Jun 11 12:55:35 2009 +0000 (2009-06-11) |
parents | c440f0b24bb4 |
children | f8d9b6cee57b |
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@3093 | 8 DEPENDS="gtk+ slitaz-menus alsa-lib xorg-libXdamage slitaz-icon" |
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@3112 | 40 |
pankso@799 | 41 # Remove a few "heavy" an unseful images (ns* goes in extra) |
pankso@3093 | 42 for i in file-manager* stock_volume* gnome-[a-k]*.png gnome-m*.png \ |
pankso@3093 | 43 gnome-netstatus-[d-t]*.png gnome-[o-z]*.png my-* redhat*.png \ |
pankso@3093 | 44 ns-*.png *lock-*.png gnome-logout.png |
pankso@3093 | 45 do |
pankso@3093 | 46 rm $fs/usr/share/lxpanel/images/$i |
pankso@3093 | 47 done |
pankso@3112 | 48 |
pankso@3093 | 49 # Custom images to match SliTaz theme. |
pankso@3093 | 50 cp -a stuff/images/* $fs/usr/share/lxpanel/images |
pankso@3112 | 51 |
pankso@799 | 52 # Remove plugins --> lxpanel-extra |
pankso@799 | 53 rm $fs/usr/lib/lxpanel/plugins/netstat.so |
pankso@799 | 54 rm $fs/usr/lib/lxpanel/plugins/kbled.so |
pankso@3112 | 55 |
pankso@3093 | 56 # Move profile to /etc/lxpanel (/usr maybe read-only) and default config |
pankso@671 | 57 mkdir $fs/etc |
pankso@671 | 58 mv -f $fs/usr/share/lxpanel/profile $fs/etc/lxpanel |
pankso@671 | 59 ln -s /etc/lxpanel $fs/usr/share/lxpanel/profile |
pankso@671 | 60 mv $fs/etc/lxpanel/default $fs/etc/lxpanel/original |
pankso@671 | 61 cp -a stuff/default $fs/etc/lxpanel |
pankso@3112 | 62 |
pankso@3093 | 63 # lxsession-logout fake |
pankso@3093 | 64 cat > $fs/usr/bin/lxsession-logout << "EOT" |
pankso@610 | 65 #!/bin/sh |
pankso@610 | 66 # lxsession-logout fake. |
pankso@610 | 67 # |
pankso@771 | 68 desktopbox logout & |
pankso@771 | 69 exit 0 |
pankso@610 | 70 EOT |
pascal@2088 | 71 chmod +x $fs/usr/bin/lxsession-logout |
pankso@610 | 72 } |