wok-next view lxpanel/receipt @ rev 20204
libjreen: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Nov 03 22:50:48 2017 +0100 (2017-11-03) |
parents | 2a1b70deab76 |
children | c4e53a39395a |
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"
11 HOST_ARCH="i486 arm"
13 TARBALL="$PACKAGE-$VERSION.tar.xz"
14 WGET_URL="https://git.lxde.org/gitweb/?p=lxde/lxpanel.git;a=snapshot;h=$COMMIT;sf=txz"
16 BUILD_DEPENDS_arm="gtk+-dev menu-cache-dev alsa-lib-dev wireless_tools-dev \
17 libxml2-dev lxmenu-data"
18 BUILD_DEPENDS="automake libtool intltool gtk+-dev menu-cache-dev alsa-lib-dev \
19 wireless_tools-dev libxml2-dev lxmenu-data libwnck2-dev libfm-dev \
20 libkeybinder-dev"
21 SPLIT="lxpanel-extra lxpanel lxpanel-dev"
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 case "$ARCH" in
27 arm*) ARCH_ARGS='--with-plugins="netstatus,volumealsa,cpu,batt,xkb,thermal,cpufreq,monitors"';;
28 esac
30 ./autogen.sh
31 CFLAGS="$CFLAGS -lgmodule-2.0"
32 ./configure \
33 --sysconfdir=/etc \
34 --localstatedir=/var \
35 $ARCH_ARGS \
36 $CONFIGURE_ARGS &&
37 make && make install || exit 1
39 # SliTaz profile
40 cp -r $stuff/slitaz $install/etc/xdg/lxpanel/
42 chown -R root:root $install
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 case $PACKAGE in
49 lxpanel-extra)
50 copy kbled.so ns-*.png *lock-*.png xkb-flags/ \
51 background.png file-manager.png gnome-*.png mute.png \
52 stock_volume.png volume-*.png window-manager.png
53 CAT="x-window|extra files and plugins"
54 TAGS="LXDE"
55 DEPENDS="lxpanel"
56 ;;
57 lxpanel)
58 copy @std
59 remove_already_packed
60 DEPENDS="alsa-lib atk bzlib cairo fontconfig freetype gdk-pixbuf \
61 glib gtk+ libexif libffi libfm libfm-gtk libharfbuzz libkeybinder \
62 liblzma libpng16 libwnck2 libxml2 menu-cache pango pcre \
63 startup-notification util-linux-blkid util-linux-mount \
64 util-linux-uuid wireless_tools xorg-libX11 xorg-libXau \
65 xorg-libXdmcp xorg-libXext xorg-libXrender xorg-libxcb xorg-pixman \
66 xorg-xcb-util zlib slitaz-menus"
67 #CONFIG_FILES="/etc/xdg/lxpanel/default/"
68 TAGS="LXDE gtk2 panel"
69 SUGGESTED="lxde lxsession slitaz-icon"
70 ;;
71 lxpanel-dev)
72 copy @dev
73 DEPENDS="lxpanel lxpanel-extra \
74 atk-dev bzip2-dev cairo-dev fontconfig-dev freetype-dev \
75 gdk-pixbuf-dev glib-dev gtk+-dev harfbuzz-dev libexif-dev \
76 libffi-dev libfm-dev libkeybinder-dev libpng16-dev libwnck2-dev \
77 libxml2-dev lxpanel menu-cache-dev pango-dev pcre-dev \
78 startup-notification-dev util-linux-blkid-dev util-linux-mount-dev \
79 util-linux-uuid-dev xorg-libX11-dev xorg-libXau-dev \
80 xorg-libXdmcp-dev xorg-libXext-dev xorg-libXrender-dev \
81 xorg-libxcb-dev xorg-pixman-dev xorg-xcb-util-dev xz-dev zlib"
82 ;;
83 esac
84 }
86 # Clean LXPanel menu caches
87 post_install() {
88 chroot "$1/" rm home/*/.cache/menus/* 2>/dev/null
89 :
90 }