wok view lxpanel/receipt @ rev 25515
Update qemu website
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 19 09:52:04 2023 +0000 (21 months ago) |
parents | 76c41f0eab0e |
children | d3556b8f5c3d |
line source
1 # SliTaz package receipt.
3 PACKAGE="lxpanel"
4 VERSION="0.10.1"
5 CATEGORY="x-window"
6 TAGS="LXDE gtk2 panel"
7 SHORT_DESC="LXDE panel."
8 MAINTAINER="maintainer@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://www.lxde.org/"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="$SF_MIRROR/lxde/$TARBALL"
15 SUGGESTED="lxde lxpanel-lang lxsession slitaz-icon"
16 DEPENDS="alsa-lib gtk+ libkeybinder libwnck libxml2 menu-cache
17 slitaz-menus wireless_tools"
18 BUILD_DEPENDS="alsa-lib-dev curl-dev gtk+-dev intltool libfm-dev libkeybinder-dev
19 libxml2-dev lxmenu-data menu-cache-dev wireless_tools-dev"
21 CONFIG_FILES="/etc/lxpanel/default"
23 HOST_ARCH="i486 arm"
25 # Handle cross compilation
26 case "$ARCH" in
27 i?86)
28 BUILD_DEPENDS="$BUILD_DEPENDS libwnck-dev"
29 pluglist="all" ;;
30 arm*)
31 pluglist="netstatus,volumealsa,cpu,batt,xkb,thermal,cpufreq,monitors" ;;
32 esac
34 # What is the latest version available today?
35 current_version()
36 {
37 wget -O - https://sourceforge.net/projects/lxde/files/LXPanel%20%28desktop%20panel%29/ 2>/dev/null | \
38 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
39 sed "/$PACKAGE-/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
40 }
42 # Rules to configure and make the package.
43 compile_rules()
44 {
45 # Match default desktop colors
46 sed -i s'/gdk_color_parse("green"/gdk_color_parse("#cfcfcf"/' \
47 $src/plugins/cpu/cpu.c || return 1
49 ./configure \
50 --sysconfdir=/etc \
51 --localstatedir=/var \
52 --with-plugins="$pluglist" \
53 $CONFIGURE_ARGS &&
54 make &&
55 make install
56 }
58 # Rules to gen a SliTaz package suitable for Tazpkg.
59 genpkg_rules()
60 {
61 mkdir -p $fs/etc/lxpanel
62 mkdir -p $fs/etc/xdg
63 mkdir -p $fs/usr/lib/lxpanel
64 mkdir -p $fs/usr/share/lxpanel/images
66 cp -a $install/usr/bin $fs/usr
68 # Plugins (kbled -> lxpanel-extra)
69 cp -a $install/usr/lib/lxpanel/*.so* $fs/usr/lib/lxpanel
70 cp -a $install/usr/lib/lxpanel/plugins $fs/usr/lib/lxpanel
71 find $fs -name kbled.so -delete
72 find $fs -name wnckpager.so -delete
74 # Images
75 imgs=usr/share/lxpanel/images
76 for i in clock cpufreq-icon my-computer
77 do
78 cp -a $install/$imgs/$i.png $fs/$imgs
79 done
81 # Move profile to /etc/lxpanel (/usr maybe read-only) and default config
82 cp -a $install/etc $fs
83 mv -f $fs/etc/xdg/lxpanel/default $fs/etc/xdg/lxpanel/original
84 cp -a $stuff/default $fs/etc/xdg/lxpanel
85 rm -rf $fs/etc/xdg/lxpanel/two_panels
87 # XDG autostart desktop file (lxsession will use it automaticaly)
88 cp -a $stuff/autostart $fs/etc/xdg
90 cp -a $install/usr/share/lxpanel/ui $fs/usr/share/lxpanel
91 cp -a $install/usr/share/lxpanel/x* $fs/usr/share/lxpanel
92 }
94 post_install()
95 {
96 # clean LXPanel menu caches
97 chroot "$1/" rm home/*/.cache/menus/* 2>/dev/null
98 :
99 }