wok-current view lxpanel/receipt @ rev 16620

Up mudraw (1.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri May 09 07:36:22 2014 +0000 (2014-05-09)
parents f0abef5a98b3
children f924b8021268
line source
1 # SliTaz package receipt.
3 PACKAGE="lxpanel"
4 VERSION="0.6.1"
5 CATEGORY="x-window"
6 SHORT_DESC="Lightweight X11 desktop panel"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.lxde.org/"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="$SF_MIRROR/lxde/LXPanel%20%28desktop%20panel%29/LXPanel%20$VERSION/$TARBALL"
12 CONFIG_FILES="/etc/lxpanel/default"
13 TAGS="gtk2 panel"
14 HOST_ARCH="i486 arm"
16 SUGGESTED="lxde lxsession slitaz-icon"
17 DEPENDS="alsa-lib gtk+ menu-cache wireless_tools libxml2 slitaz-menus"
18 BUILD_DEPENDS="gtk+-dev menu-cache-dev alsa-lib-dev wireless_tools-dev \
19 libxml2-dev lxmenu-data"
21 # Handle cross compilation
22 case "$ARCH" in
23 i?86)
24 BUILD_DEPENDS="$BUILD_DEPENDS libwnck-dev"
25 pluglist="all" ;;
26 arm*)
27 pluglist="netstatus,volumealsa,cpu,batt,xkb,thermal,cpufreq,monitors" ;;
28 esac
30 # Rules to configure and make the package.
31 compile_rules()
32 {
33 ./configure \
34 --sysconfdir=/etc \
35 --localstatedir=/var \
36 --with-plugins="$pluglist" \
37 $CONFIGURE_ARGS &&
38 make && make install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p \
45 $fs/usr/lib \
46 $fs/usr/share/lxpanel/images \
47 $fs/etc/lxpanel \
48 $fs/etc/xdg
50 cp -a $install/usr/bin $fs/usr
52 # Plugins (kbled -> lxpanel-extra)
53 cp -a $install/usr/lib/lxpanel $fs/usr/lib
54 find $fs -name kbled.so -delete
55 find $fs -name wnckpager.so -delete
57 # Images
58 imgs=usr/share/lxpanel/images
59 for i in clock cpufreq-icon my-computer; do
60 cp -a $install/$imgs/$i.png $fs/$imgs
61 done
63 # Move profile to /etc/lxpanel (/usr maybe read-only) and default config
64 cp -a $install/usr/share/lxpanel/profile/* $fs/etc/lxpanel
65 ln -sf /etc/lxpanel $fs/usr/share/lxpanel/profile
66 mv -f $fs/etc/lxpanel/default $fs/etc/lxpanel/original
67 cp -a $stuff/default $fs/etc/lxpanel
68 rm -rf $fs/etc/lxpanel/two_panels
70 # XDG autostart desktop file (lxsession will use it automaticaly)
71 cp -a $stuff/autostart $fs/etc/xdg
73 cp -a $install/usr/share/lxpanel/ui $fs/usr/share/lxpanel
74 cp -a $install/usr/share/lxpanel/x* $fs/usr/share/lxpanel
75 }