wok view lxpanel/receipt @ rev 21907
updated shared-mime-info and shared-mime-info-dev again (1.6 -> 1.14)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Oct 04 14:50:33 2019 +0100 (2019-10-04) |
parents | f30d063d7a89 |
children | f785404cbaa7 |
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="http://www.lxde.org/"
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 # 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/lxpanel \
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/*.so* $fs/usr/lib/lxpanel/
57 cp -a $install/usr/lib/lxpanel/plugins $fs/usr/lib/lxpanel/
58 find $fs -name kbled.so -delete
59 find $fs -name wnckpager.so -delete
61 # Images
62 imgs=usr/share/lxpanel/images
63 for i in clock cpufreq-icon my-computer; do
64 cp -a $install/$imgs/$i.png $fs/$imgs
65 done
67 # Move profile to /etc/lxpanel (/usr maybe read-only) and default config
68 cp -a $install/etc $fs/
69 mv -f $fs/etc/xdg/lxpanel/default $fs/etc/xdg/lxpanel/original
70 cp -a $stuff/default $fs/etc/xdg/lxpanel
71 rm -rf $fs/etc/xdg/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 chroot "$1/" rm home/*/.cache/menus/* 2>/dev/null
84 :
85 }