wok annotate lxpanel/receipt @ rev 14203

linux-libre: fix check_modules.sh
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Mar 14 10:38:19 2013 +0100 (2013-03-14)
parents 49e1774e4196
children bf872cb6f5c1
rev   line source
pankso@341 1 # SliTaz package receipt.
pankso@341 2
pankso@341 3 PACKAGE="lxpanel"
slaxemulator@13159 4 VERSION="0.5.10"
pankso@341 5 CATEGORY="x-window"
pankso@341 6 SHORT_DESC="Standard compliant desktop panel."
pankso@341 7 MAINTAINER="pankso@slitaz.org"
slaxemulator@13159 8 TARBALL="${PACKAGE}_${VERSION}.orig.tar.xz"
rcx@3799 9 WEB_SITE="http://www.lxde.org/"
pankso@12307 10 #WGET_URL="$SF_MIRROR/lxde/$TARBALL"
slaxemulator@13159 11 WGET_URL="http://ftp.de.debian.org/debian/pool/main/l/$PACKAGE/$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
slaxemulator@13159 52 ln -sf /etc/lxpanel $fs/usr/share/lxpanel/profile
slaxemulator@13159 53 mv -f $fs/etc/lxpanel/default $fs/etc/lxpanel/original
pankso@12307 54 cp -a $stuff/default $fs/etc/lxpanel
slaxemulator@13159 55
pankso@12307 56 rm -rf $fs/etc/lxpanel/two_panels
pankso@12560 57
pankso@12560 58 # XDG autostart desktop file (lxsession will use it automaticaly)
pankso@12560 59 cp -a $stuff/autostart $fs/etc/xdg
pankso@12560 60
pankso@12307 61 # Make images symlinks so it feet SliTaz theme
pankso@12307 62 cd $fs/usr/share/lxpanel/images
pankso@12307 63 ln -s /usr/share/icons/SliTaz/status/32/network-idle.png ns-connected.png
pankso@12307 64 ln -s /usr/share/icons/SliTaz/status/32/network-offline.png ns-disconnect.png
pankso@12307 65 ln -s /usr/share/icons/SliTaz/status/32/network-receive.png ns-recvdata.png
pankso@12307 66 ln -s /usr/share/icons/SliTaz/status/32/network-receive.png ns-senddata.png
pankso@12307 67 ln -s /usr/share/icons/SliTaz/status/32/nm-adhoc.png ns-bothrs.png
pankso@12307 68 ln -s /usr/share/icons/SliTaz/status/32/network-error.png ns-problem.png
pankso@610 69 }