wok-6.x view lxpanel/receipt @ rev 24107
updated adminer (4.7.5 -> 4.8.1)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Sep 25 17:50:51 2021 +0100 (2021-09-25) |
parents | f785404cbaa7 |
children | 8fb436a61a63 |
line source
1 # SliTaz package receipt.
3 PACKAGE="lxpanel"
4 VERSION="0.10.0"
5 CATEGORY="x-window"
6 SHORT_DESC="LXDE panel"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://wiki.lxde.org/en/LXPanel"
10 TARBALL="$PACKAGE-$VERSION.tar.xz"
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 libkeybinder libwnck"
18 BUILD_DEPENDS="intltool libfm-dev libkeybinder-dev curl-dev \
19 gtk+-dev menu-cache-dev alsa-lib-dev wireless_tools-dev 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 current_version()
31 {
32 wget -O - https://sourceforge.net/projects/lxde/files/LXPanel%20%28desktop%20panel%29/ 2>/dev/null | \
33 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
34 sed "/$PACKAGE-/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
35 }
37 # Rules to configure and make the package.
38 compile_rules()
39 {
40 # Match default desktop colors
41 sed -i s'/gdk_color_parse("green"/gdk_color_parse("#cfcfcf"/' \
42 $src/plugins/cpu/cpu.c || return 1
43 ./configure \
44 --sysconfdir=/etc \
45 --localstatedir=/var \
46 --with-plugins="$pluglist" \
47 $CONFIGURE_ARGS &&
48 make && make install
49 }
51 # Rules to gen a SliTaz package suitable for Tazpkg.
52 genpkg_rules()
53 {
54 mkdir -p \
55 $fs/usr/lib/lxpanel \
56 $fs/usr/share/lxpanel/images \
57 $fs/etc/lxpanel \
58 $fs/etc/xdg
60 cp -a $install/usr/bin $fs/usr
62 # Plugins (kbled -> lxpanel-extra)
63 cp -a $install/usr/lib/lxpanel/*.so* $fs/usr/lib/lxpanel/
64 cp -a $install/usr/lib/lxpanel/plugins $fs/usr/lib/lxpanel/
65 find $fs -name kbled.so -delete
66 find $fs -name wnckpager.so -delete
68 # Images
69 imgs=usr/share/lxpanel/images
70 for i in clock cpufreq-icon my-computer; do
71 cp -a $install/$imgs/$i.png $fs/$imgs
72 done
74 # Move profile to /etc/lxpanel (/usr maybe read-only) and default config
75 cp -a $install/etc $fs/
76 mv -f $fs/etc/xdg/lxpanel/default $fs/etc/xdg/lxpanel/original
77 cp -a $stuff/default $fs/etc/xdg/lxpanel
78 rm -rf $fs/etc/xdg/lxpanel/two_panels
80 # XDG autostart desktop file (lxsession will use it automaticaly)
81 cp -a $stuff/autostart $fs/etc/xdg
83 cp -a $install/usr/share/lxpanel/ui $fs/usr/share/lxpanel
84 cp -a $install/usr/share/lxpanel/x* $fs/usr/share/lxpanel
85 }
87 post_install()
88 {
89 # clean LXPanel menu caches
90 chroot "$1/" rm home/*/.cache/menus/* 2>/dev/null
91 :
92 }