wok-current view lxpanel/receipt @ rev 16845

netsurf: try default make rules
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Sat Jul 12 23:41:25 2014 +0300 (2014-07-12)
parents 68ed753afd19
children c9e270dd464f
line source
1 # SliTaz package receipt.
3 PACKAGE="lxpanel"
4 VERSION="0.6.2"
5 CATEGORY="x-window"
6 SHORT_DESC="Lightweight X11 desktop 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/LXPanel%20%28desktop%20panel%29/LXPanel%20$VERSION/$TARBALL"
12 CONFIG_FILES="/etc/lxpanel/default"
13 TAGS="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 }