wok annotate lxpanel/receipt @ rev 12307
Up: lxpanel (0.5.9) New applets and fixes
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Apr 17 12:26:07 2012 +0200 (2012-04-17) |
parents | 1134cd1d9d3c |
children | 15c8aa308268 |
rev | line source |
---|---|
pankso@341 | 1 # SliTaz package receipt. |
pankso@341 | 2 |
pankso@341 | 3 PACKAGE="lxpanel" |
pankso@12307 | 4 VERSION="0.5.9" |
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 TARBALL="$PACKAGE-$VERSION.tar.gz" |
rcx@3799 | 9 WEB_SITE="http://www.lxde.org/" |
pankso@12307 | 10 #WGET_URL="$SF_MIRROR/lxde/$TARBALL" |
pankso@12307 | 11 WGET_URL="http://l10n.bsnet.se/~brother/lxde_releases/$TARBALL" |
pascal@2563 | 12 CONFIG_FILES="/etc/lxpanel/default" |
pankso@341 | 13 |
pankso@9694 | 14 DEPENDS="glibc-base glib libgio expat zlib menu-cache slitaz-icon \ |
pankso@12307 | 15 gtk+ alsa-lib wireless_tools libwnck" |
pankso@10736 | 16 BUILD_DEPENDS="gtk+-dev gettext expat-dev intltool menu-cache-dev \ |
pankso@12307 | 17 lxmenu-data alsa-lib-dev wireless_tools-dev libwnck-dev" |
pankso@9694 | 18 |
pankso@341 | 19 # Rules to configure and make the package. |
pankso@341 | 20 compile_rules() |
pankso@341 | 21 { |
pankso@341 | 22 cd $src |
pankso@12307 | 23 #patch -p1 -i $stuff/batt.chg.level.patch |
pankso@12307 | 24 #patch -p1 -i $stuff/configure_desktop_number.patch |
pankso@12307 | 25 #patch -p1 -i $stuff/fix_position.patch |
pankso@11955 | 26 patch -p0 -i $stuff/cpu-size-color.patch || exit 1 |
gokhlayeh@11573 | 27 ./configure --with-plugins=all $CONFIGURE_ARGS && |
pankso@9694 | 28 make && make install |
pankso@341 | 29 } |
pankso@341 | 30 |
pankso@341 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@341 | 32 genpkg_rules() |
pankso@341 | 33 { |
pankso@3960 | 34 mkdir -p $fs/usr/share $fs/usr/lib |
pankso@9694 | 35 |
pankso@9694 | 36 cp -a $install/usr/bin $fs/usr |
pankso@9694 | 37 cp -a $install/usr/lib/lxpanel $fs/usr/lib |
pankso@9694 | 38 cp -a $install/usr/share/lxpanel $fs/usr/share |
pankso@3808 | 39 |
rcx@3799 | 40 # Remove a few "heavy" and unuseful images (ns* goes in extra) |
pankso@12307 | 41 for i in file-manager* *volume* mute.png gnome-[a-m]*.png \ |
pankso@12307 | 42 gnome-netstatus-*.png my-* ns-*.png *lock-*.png \ |
pankso@12307 | 43 background.png window-manager.png |
pankso@3093 | 44 do |
pankso@3093 | 45 rm $fs/usr/share/lxpanel/images/$i |
pankso@3093 | 46 done |
pankso@3808 | 47 |
pankso@3093 | 48 # Custom images to match SliTaz theme. |
pankso@12307 | 49 #cp -a stuff/images/* $fs/usr/share/lxpanel/images |
pankso@3808 | 50 |
pankso@799 | 51 # Remove plugins --> lxpanel-extra |
pankso@799 | 52 rm $fs/usr/lib/lxpanel/plugins/kbled.so |
pankso@9494 | 53 rm -rf $fs/usr/share/lxpanel/images/xkb-flags |
pankso@3808 | 54 |
pankso@3093 | 55 # Move profile to /etc/lxpanel (/usr maybe read-only) and default config |
pankso@671 | 56 mkdir $fs/etc |
pankso@671 | 57 mv -f $fs/usr/share/lxpanel/profile $fs/etc/lxpanel |
pankso@671 | 58 ln -s /etc/lxpanel $fs/usr/share/lxpanel/profile |
pankso@671 | 59 mv $fs/etc/lxpanel/default $fs/etc/lxpanel/original |
pankso@12307 | 60 cp -a $stuff/default $fs/etc/lxpanel |
pankso@12307 | 61 rm -rf $fs/etc/lxpanel/two_panels |
pankso@3808 | 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@10736 | 68 tazbox logout & |
pankso@771 | 69 exit 0 |
pankso@610 | 70 EOT |
pascal@2088 | 71 chmod +x $fs/usr/bin/lxsession-logout |
pankso@12307 | 72 |
pankso@12307 | 73 # Make images symlinks so it feet SliTaz theme |
pankso@12307 | 74 cd $fs/usr/share/lxpanel/images |
pankso@12307 | 75 ln -s /usr/share/icons/SliTaz/status/32/network-idle.png ns-connected.png |
pankso@12307 | 76 ln -s /usr/share/icons/SliTaz/status/32/network-offline.png ns-disconnect.png |
pankso@12307 | 77 ln -s /usr/share/icons/SliTaz/status/32/network-receive.png ns-recvdata.png |
pankso@12307 | 78 ln -s /usr/share/icons/SliTaz/status/32/network-receive.png ns-senddata.png |
pankso@12307 | 79 ln -s /usr/share/icons/SliTaz/status/32/nm-adhoc.png ns-bothrs.png |
pankso@12307 | 80 ln -s /usr/share/icons/SliTaz/status/32/network-error.png ns-problem.png |
pankso@610 | 81 } |