wok annotate lxpanel/receipt @ rev 12560

lxpanel: use XDG autostart
author Christophe Lincoln <pankso@slitaz.org>
date Sat Apr 28 15:52:00 2012 +0200 (2012-04-28)
parents 15c8aa308268
children 0b73c72d760b
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@12414 15 gtk+ alsa-lib wireless_tools libwnck lxsession"
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@11955 23 patch -p0 -i $stuff/cpu-size-color.patch || exit 1
gokhlayeh@11573 24 ./configure --with-plugins=all $CONFIGURE_ARGS &&
pankso@9694 25 make && make install
pankso@341 26 }
pankso@341 27
pankso@341 28 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@341 29 genpkg_rules()
pankso@341 30 {
pankso@12560 31 mkdir -p $fs/usr/share $fs/usr/lib $fs/etc/xdg
pankso@12560 32
pankso@9694 33 cp -a $install/usr/bin $fs/usr
pankso@9694 34 cp -a $install/usr/lib/lxpanel $fs/usr/lib
pankso@9694 35 cp -a $install/usr/share/lxpanel $fs/usr/share
pankso@3808 36
rcx@3799 37 # Remove a few "heavy" and unuseful images (ns* goes in extra)
pankso@12307 38 for i in file-manager* *volume* mute.png gnome-[a-m]*.png \
pankso@12307 39 gnome-netstatus-*.png my-* ns-*.png *lock-*.png \
pankso@12307 40 background.png window-manager.png
pankso@3093 41 do
pankso@3093 42 rm $fs/usr/share/lxpanel/images/$i
pankso@3093 43 done
pankso@3808 44
pankso@799 45 # Remove plugins --> lxpanel-extra
pankso@799 46 rm $fs/usr/lib/lxpanel/plugins/kbled.so
pankso@9494 47 rm -rf $fs/usr/share/lxpanel/images/xkb-flags
pankso@3808 48
pankso@3093 49 # Move profile to /etc/lxpanel (/usr maybe read-only) and default config
pankso@671 50 mkdir $fs/etc
pankso@671 51 mv -f $fs/usr/share/lxpanel/profile $fs/etc/lxpanel
pankso@671 52 ln -s /etc/lxpanel $fs/usr/share/lxpanel/profile
pankso@671 53 mv $fs/etc/lxpanel/default $fs/etc/lxpanel/original
pankso@12307 54 cp -a $stuff/default $fs/etc/lxpanel
pankso@12307 55 rm -rf $fs/etc/lxpanel/two_panels
pankso@12560 56
pankso@12560 57 # XDG autostart desktop file (lxsession will use it automaticaly)
pankso@12560 58 cp -a $stuff/autostart $fs/etc/xdg
pankso@12560 59
pankso@12307 60 # Make images symlinks so it feet SliTaz theme
pankso@12307 61 cd $fs/usr/share/lxpanel/images
pankso@12307 62 ln -s /usr/share/icons/SliTaz/status/32/network-idle.png ns-connected.png
pankso@12307 63 ln -s /usr/share/icons/SliTaz/status/32/network-offline.png ns-disconnect.png
pankso@12307 64 ln -s /usr/share/icons/SliTaz/status/32/network-receive.png ns-recvdata.png
pankso@12307 65 ln -s /usr/share/icons/SliTaz/status/32/network-receive.png ns-senddata.png
pankso@12307 66 ln -s /usr/share/icons/SliTaz/status/32/nm-adhoc.png ns-bothrs.png
pankso@12307 67 ln -s /usr/share/icons/SliTaz/status/32/network-error.png ns-problem.png
pankso@610 68 }