wok-current view lxpanel/receipt @ rev 25019
updated openjpeg2 and openjpeg2-dev (2.3.1 -> 2.5.0)
author | Hans-G?nter Theisgen |
---|---|
date | Wed May 18 07:22:38 2022 +0100 (2022-05-18) |
parents | 8fb436a61a63 |
children | 76c41f0eab0e |
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://wiki.lxde.org/en/LXPanel"
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 current_version()
35 {
36 wget -O - https://sourceforge.net/projects/lxde/files/LXPanel%20%28desktop%20panel%29/ 2>/dev/null | \
37 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
38 sed "/$PACKAGE-/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
39 }
41 # Rules to configure and make the package.
42 compile_rules()
43 {
44 # Match default desktop colors
45 sed -i s'/gdk_color_parse("green"/gdk_color_parse("#cfcfcf"/' \
46 $src/plugins/cpu/cpu.c || return 1
48 ./configure \
49 --sysconfdir=/etc \
50 --localstatedir=/var \
51 --with-plugins="$pluglist" \
52 $CONFIGURE_ARGS &&
53 make &&
54 make install
55 }
57 # Rules to gen a SliTaz package suitable for Tazpkg.
58 genpkg_rules()
59 {
60 mkdir -p $fs/etc/lxpanel
61 mkdir -p $fs/etc/xdg
62 mkdir -p $fs/usr/lib/lxpanel
63 mkdir -p $fs/usr/share/lxpanel/images
65 cp -a $install/usr/bin $fs/usr
67 # Plugins (kbled -> lxpanel-extra)
68 cp -a $install/usr/lib/lxpanel/*.so* $fs/usr/lib/lxpanel
69 cp -a $install/usr/lib/lxpanel/plugins $fs/usr/lib/lxpanel
70 find $fs -name kbled.so -delete
71 find $fs -name wnckpager.so -delete
73 # Images
74 imgs=usr/share/lxpanel/images
75 for i in clock cpufreq-icon my-computer
76 do
77 cp -a $install/$imgs/$i.png $fs/$imgs
78 done
80 # Move profile to /etc/lxpanel (/usr maybe read-only) and default config
81 cp -a $install/etc $fs
82 mv -f $fs/etc/xdg/lxpanel/default $fs/etc/xdg/lxpanel/original
83 cp -a $stuff/default $fs/etc/xdg/lxpanel
84 rm -rf $fs/etc/xdg/lxpanel/two_panels
86 # XDG autostart desktop file (lxsession will use it automaticaly)
87 cp -a $stuff/autostart $fs/etc/xdg
89 cp -a $install/usr/share/lxpanel/ui $fs/usr/share/lxpanel
90 cp -a $install/usr/share/lxpanel/x* $fs/usr/share/lxpanel
91 }
93 post_install()
94 {
95 # clean LXPanel menu caches
96 chroot "$1/" rm home/*/.cache/menus/* 2>/dev/null
97 :
98 }