wok-next view lxpanel/receipt @ rev 20545

vmtouch: create $install/usr/bin path
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Apr 03 15:08:22 2018 +0200 (2018-04-03)
parents d43bf7aae921
children cac2c0130f0d
line source
1 # SliTaz package receipt v2.
3 PACKAGE="lxpanel"
4 COMMIT="768c48fe9868adcbb48d1787b448675432f1bb6a"
5 VERSION="0.9.3.11" # 11th commit after 0.9.3 release
6 CATEGORY="x-window"
7 SHORT_DESC="LXDE panel"
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://wiki.lxde.org/en/LXPanel"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="https://git.lxde.org/gitweb/?p=lxde/lxpanel.git;a=snapshot;h=$COMMIT;sf=txz"
15 BUILD_DEPENDS_arm="gtk+-dev menu-cache-dev alsa-lib-dev wireless_tools-dev \
16 libxml2-dev lxmenu-data"
17 BUILD_DEPENDS="automake libtool intltool gtk+-dev menu-cache-dev alsa-lib-dev \
18 wireless_tools-dev libxml2-dev lxmenu-data libwnck2-dev libfm-dev \
19 libkeybinder-dev"
20 SPLIT="lxpanel-extra lxpanel lxpanel-dev"
22 compile_rules() {
23 case "$ARCH" in
24 arm*) ARCH_ARGS='--with-plugins="netstatus,volumealsa,cpu,batt,xkb,thermal,cpufreq,monitors"';;
25 esac
27 ./autogen.sh
28 CFLAGS="$CFLAGS -lgmodule-2.0"
29 ./configure \
30 $ARCH_ARGS \
31 $CONFIGURE_ARGS &&
32 fix libtool &&
33 make &&
34 make install || exit 1
36 # SliTaz profile
37 cp -r $stuff/slitaz $install/etc/xdg/lxpanel/
39 chown -R root:root $install
40 }
42 genpkg_rules() {
43 case $PACKAGE in
44 lxpanel-extra)
45 copy kbled.so ns-*.png *lock-*.png xkb-flags/ \
46 background.png file-manager.png gnome-*.png mute.png \
47 stock_volume.png volume-*.png window-manager.png
48 CAT="x-window|extra files and plugins"
49 TAGS="LXDE"
50 DEPENDS="lxpanel"
51 ;;
52 lxpanel)
53 copy @std @rm
54 DEPENDS="alsa-lib atk bzlib cairo fontconfig freetype gdk-pixbuf \
55 glib gtk+ libexif libffi libfm libfm-gtk libharfbuzz libkeybinder \
56 liblzma libpng16 libwnck2 libxml2 menu-cache pango pcre \
57 startup-notification util-linux-blkid util-linux-mount \
58 util-linux-uuid wireless_tools xorg-libX11 xorg-libXau \
59 xorg-libXdmcp xorg-libXext xorg-libXrender xorg-libxcb xorg-pixman \
60 xorg-xcb-util zlib slitaz-menus"
61 #CONFIG_FILES="/etc/xdg/lxpanel/default/"
62 TAGS="LXDE gtk2 panel"
63 SUGGESTED="lxde lxsession slitaz-icon"
64 ;;
65 lxpanel-dev)
66 copy @dev
67 DEPENDS="lxpanel lxpanel-extra \
68 atk-dev bzip2-dev cairo-dev fontconfig-dev freetype-dev \
69 gdk-pixbuf-dev glib-dev gtk+-dev harfbuzz-dev libexif-dev \
70 libffi-dev libfm-dev libkeybinder-dev libpng16-dev libwnck2-dev \
71 libxml2-dev lxpanel menu-cache-dev pango-dev pcre-dev \
72 startup-notification-dev util-linux-blkid-dev util-linux-mount-dev \
73 util-linux-uuid-dev xorg-libX11-dev xorg-libXau-dev \
74 xorg-libXdmcp-dev xorg-libXext-dev xorg-libXrender-dev \
75 xorg-libxcb-dev xorg-pixman-dev xorg-xcb-util-dev xz-dev zlib"
76 ;;
77 esac
78 }
80 # Clean LXPanel menu caches
81 post_install() {
82 chroot "$1/" rm home/*/.cache/menus/* 2>/dev/null
83 :
84 }