wok view lxpanel/receipt @ rev 18612

lxpanel, slitaz-configs: copy LXPanel profile to /etc/skel (again)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Nov 17 16:50:26 2015 +0200 (2015-11-17)
parents 67354f747d83
children 49be2e5503d0
line source
1 # SliTaz package receipt.
3 PACKAGE="lxpanel"
4 VERSION="0.6.2"
5 CATEGORY="x-window"
6 SHORT_DESC="LXDE 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/$TARBALL"
12 CONFIG_FILES="/etc/lxpanel/default"
13 TAGS="LXDE 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 # Match default desktop colors
34 sed -i s'/gdk_color_parse("green"/gdk_color_parse("#cfcfcf"/' \
35 src/plugins/cpu/cpu.c || return 1
36 ./configure \
37 --sysconfdir=/etc \
38 --localstatedir=/var \
39 --with-plugins="$pluglist" \
40 $CONFIGURE_ARGS &&
41 make && make install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p \
48 $fs/usr/lib \
49 $fs/usr/share/lxpanel/images \
50 $fs/etc/lxpanel \
51 $fs/etc/xdg
53 cp -a $install/usr/bin $fs/usr
55 # Plugins (kbled -> lxpanel-extra)
56 cp -a $install/usr/lib/lxpanel $fs/usr/lib
57 find $fs -name kbled.so -delete
58 find $fs -name wnckpager.so -delete
60 # Images
61 imgs=usr/share/lxpanel/images
62 for i in clock cpufreq-icon my-computer; do
63 cp -a $install/$imgs/$i.png $fs/$imgs
64 done
66 # Move profile to /etc/lxpanel (/usr maybe read-only) and default config
67 cp -a $install/usr/share/lxpanel/profile/* $fs/etc/lxpanel
68 ln -sf /etc/lxpanel $fs/usr/share/lxpanel/profile
69 mv -f $fs/etc/lxpanel/default $fs/etc/lxpanel/original
70 cp -a $stuff/default $fs/etc/lxpanel
71 rm -rf $fs/etc/lxpanel/two_panels
73 # XDG autostart desktop file (lxsession will use it automaticaly)
74 cp -a $stuff/autostart $fs/etc/xdg
76 cp -a $install/usr/share/lxpanel/ui $fs/usr/share/lxpanel
77 cp -a $install/usr/share/lxpanel/x* $fs/usr/share/lxpanel
78 }
80 post_install()
81 {
82 # clean LXPanel menu caches
83 for i in /home/*/.cache/menus; do
84 [ -d "$i" ] && rm $i/*
85 done
86 }