wok annotate lxpanel/receipt @ rev 25515

Update qemu website
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 19 09:52:04 2023 +0000 (21 months ago)
parents 76c41f0eab0e
children d3556b8f5c3d
rev   line source
pankso@341 1 # SliTaz package receipt.
pankso@341 2
pankso@341 3 PACKAGE="lxpanel"
Hans-G?nter@24870 4 VERSION="0.10.1"
pankso@341 5 CATEGORY="x-window"
Hans-G?nter@24870 6 TAGS="LXDE gtk2 panel"
Hans-G?nter@24870 7 SHORT_DESC="LXDE panel."
Hans-G?nter@24870 8 MAINTAINER="maintainer@slitaz.org"
pascal@15002 9 LICENSE="GPL2"
pascal@25043 10 WEB_SITE="https://www.lxde.org/"
Hans-G?nter@24870 11
al@21314 12 TARBALL="$PACKAGE-$VERSION.tar.xz"
al@17992 13 WGET_URL="$SF_MIRROR/lxde/$TARBALL"
pankso@341 14
Hans-G?nter@24871 15 SUGGESTED="lxde lxpanel-lang lxsession slitaz-icon"
Hans-G?nter@24870 16 DEPENDS="alsa-lib gtk+ libkeybinder libwnck libxml2 menu-cache
Hans-G?nter@24870 17 slitaz-menus wireless_tools"
Hans-G?nter@24870 18 BUILD_DEPENDS="alsa-lib-dev curl-dev gtk+-dev intltool libfm-dev libkeybinder-dev
Hans-G?nter@24870 19 libxml2-dev lxmenu-data menu-cache-dev wireless_tools-dev"
Hans-G?nter@24870 20
Hans-G?nter@24870 21 CONFIG_FILES="/etc/lxpanel/default"
Hans-G?nter@24870 22
Hans-G?nter@24870 23 HOST_ARCH="i486 arm"
pankso@16260 24
pankso@16260 25 # Handle cross compilation
pankso@16260 26 case "$ARCH" in
pankso@16260 27 i?86)
pankso@16260 28 BUILD_DEPENDS="$BUILD_DEPENDS libwnck-dev"
pankso@16260 29 pluglist="all" ;;
pankso@16260 30 arm*)
pankso@16260 31 pluglist="netstatus,volumealsa,cpu,batt,xkb,thermal,cpufreq,monitors" ;;
pankso@16260 32 esac
pankso@9694 33
pascal@25045 34 # What is the latest version available today?
pascal@24071 35 current_version()
pascal@24071 36 {
pascal@24071 37 wget -O - https://sourceforge.net/projects/lxde/files/LXPanel%20%28desktop%20panel%29/ 2>/dev/null | \
pascal@24071 38 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24071 39 sed "/$PACKAGE-/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
pascal@24071 40 }
pascal@24071 41
pankso@341 42 # Rules to configure and make the package.
pankso@341 43 compile_rules()
pankso@341 44 {
pankso@16702 45 # Match default desktop colors
pankso@16702 46 sed -i s'/gdk_color_parse("green"/gdk_color_parse("#cfcfcf"/' \
al@21314 47 $src/plugins/cpu/cpu.c || return 1
Hans-G?nter@24870 48
Hans-G?nter@24870 49 ./configure \
Hans-G?nter@24870 50 --sysconfdir=/etc \
Hans-G?nter@24870 51 --localstatedir=/var \
Hans-G?nter@24870 52 --with-plugins="$pluglist" \
al@14260 53 $CONFIGURE_ARGS &&
Hans-G?nter@24870 54 make &&
Hans-G?nter@24870 55 make install
pankso@341 56 }
pankso@341 57
pankso@341 58 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@341 59 genpkg_rules()
pankso@341 60 {
Hans-G?nter@24870 61 mkdir -p $fs/etc/lxpanel
Hans-G?nter@24870 62 mkdir -p $fs/etc/xdg
Hans-G?nter@24870 63 mkdir -p $fs/usr/lib/lxpanel
Hans-G?nter@24870 64 mkdir -p $fs/usr/share/lxpanel/images
pankso@12560 65
Hans-G?nter@24870 66 cp -a $install/usr/bin $fs/usr
al@14260 67
al@14260 68 # Plugins (kbled -> lxpanel-extra)
Hans-G?nter@24870 69 cp -a $install/usr/lib/lxpanel/*.so* $fs/usr/lib/lxpanel
Hans-G?nter@24870 70 cp -a $install/usr/lib/lxpanel/plugins $fs/usr/lib/lxpanel
al@14260 71 find $fs -name kbled.so -delete
pankso@15909 72 find $fs -name wnckpager.so -delete
pankso@3808 73
al@14260 74 # Images
al@14260 75 imgs=usr/share/lxpanel/images
Hans-G?nter@24870 76 for i in clock cpufreq-icon my-computer
Hans-G?nter@24870 77 do
Hans-G?nter@24870 78 cp -a $install/$imgs/$i.png $fs/$imgs
Hans-G?nter@24870 79 done
pankso@3808 80
pankso@3093 81 # Move profile to /etc/lxpanel (/usr maybe read-only) and default config
Hans-G?nter@24870 82 cp -a $install/etc $fs
Hans-G?nter@24870 83 mv -f $fs/etc/xdg/lxpanel/default $fs/etc/xdg/lxpanel/original
Hans-G?nter@24870 84 cp -a $stuff/default $fs/etc/xdg/lxpanel
Hans-G?nter@24870 85 rm -rf $fs/etc/xdg/lxpanel/two_panels
pankso@12560 86
pankso@12560 87 # XDG autostart desktop file (lxsession will use it automaticaly)
Hans-G?nter@24870 88 cp -a $stuff/autostart $fs/etc/xdg
pankso@12560 89
Hans-G?nter@24870 90 cp -a $install/usr/share/lxpanel/ui $fs/usr/share/lxpanel
Hans-G?nter@24870 91 cp -a $install/usr/share/lxpanel/x* $fs/usr/share/lxpanel
pankso@610 92 }
al@18582 93
al@18582 94 post_install()
al@18582 95 {
al@18582 96 # clean LXPanel menu caches
al@19427 97 chroot "$1/" rm home/*/.cache/menus/* 2>/dev/null
al@19427 98 :
al@18582 99 }