wok-next view lxpanel/receipt @ rev 20672

font-manager: update bdeps / fix build
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri May 11 16:51:58 2018 +0300 (2018-05-11)
parents 757d032c55c7
children e7a485521d6a
line source
1 # SliTaz package receipt v2.
3 PACKAGE="lxpanel"
4 COMMIT="25fd48473bebf02dfc1c099ce6ae58bca9b91645"
5 VERSION="0.9.3.25" # 25th 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="glib gtk+ lxpanel xorg-libX11"
51 ;;
52 lxpanel)
53 copy @std @rm
54 DEPENDS="alsa-lib cairo gdk-pixbuf glib gtk+ libfm libfm-gtk \
55 libkeybinder libwnck2 libxml2 menu-cache pango wireless_tools \
56 xorg-libX11 slitaz-menus"
57 #CONFIG_FILES="/etc/xdg/lxpanel/default/"
58 TAGS="LXDE gtk2 panel"
59 SUGGESTED="lxde lxsession slitaz-icon"
60 ;;
61 lxpanel-dev)
62 copy @dev
63 DEPENDS="lxpanel lxpanel-extra \
64 gtk+-dev libfm-dev"
65 ;;
66 esac
67 }
69 # Clean LXPanel menu caches
70 post_install() {
71 chroot "$1/" rm home/*/.cache/menus/* 2>/dev/null
72 :
73 }