wok-next annotate lxpanel/receipt @ rev 20566

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