wok-current annotate lxpanel/receipt @ rev 24879

updated man-pages (5.05 -> 5.13)
author Hans-G?nter Theisgen
date Thu Mar 31 14:20:54 2022 +0100 (2022-03-31)
parents 8fb436a61a63
children 76c41f0eab0e
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@23725 10 WEB_SITE="https://wiki.lxde.org/en/LXPanel"
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@24071 34 current_version()
pascal@24071 35 {
pascal@24071 36 wget -O - https://sourceforge.net/projects/lxde/files/LXPanel%20%28desktop%20panel%29/ 2>/dev/null | \
pascal@24071 37 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24071 38 sed "/$PACKAGE-/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
pascal@24071 39 }
pascal@24071 40
pankso@341 41 # Rules to configure and make the package.
pankso@341 42 compile_rules()
pankso@341 43 {
pankso@16702 44 # Match default desktop colors
pankso@16702 45 sed -i s'/gdk_color_parse("green"/gdk_color_parse("#cfcfcf"/' \
al@21314 46 $src/plugins/cpu/cpu.c || return 1
Hans-G?nter@24870 47
Hans-G?nter@24870 48 ./configure \
Hans-G?nter@24870 49 --sysconfdir=/etc \
Hans-G?nter@24870 50 --localstatedir=/var \
Hans-G?nter@24870 51 --with-plugins="$pluglist" \
al@14260 52 $CONFIGURE_ARGS &&
Hans-G?nter@24870 53 make &&
Hans-G?nter@24870 54 make install
pankso@341 55 }
pankso@341 56
pankso@341 57 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@341 58 genpkg_rules()
pankso@341 59 {
Hans-G?nter@24870 60 mkdir -p $fs/etc/lxpanel
Hans-G?nter@24870 61 mkdir -p $fs/etc/xdg
Hans-G?nter@24870 62 mkdir -p $fs/usr/lib/lxpanel
Hans-G?nter@24870 63 mkdir -p $fs/usr/share/lxpanel/images
pankso@12560 64
Hans-G?nter@24870 65 cp -a $install/usr/bin $fs/usr
al@14260 66
al@14260 67 # Plugins (kbled -> lxpanel-extra)
Hans-G?nter@24870 68 cp -a $install/usr/lib/lxpanel/*.so* $fs/usr/lib/lxpanel
Hans-G?nter@24870 69 cp -a $install/usr/lib/lxpanel/plugins $fs/usr/lib/lxpanel
al@14260 70 find $fs -name kbled.so -delete
pankso@15909 71 find $fs -name wnckpager.so -delete
pankso@3808 72
al@14260 73 # Images
al@14260 74 imgs=usr/share/lxpanel/images
Hans-G?nter@24870 75 for i in clock cpufreq-icon my-computer
Hans-G?nter@24870 76 do
Hans-G?nter@24870 77 cp -a $install/$imgs/$i.png $fs/$imgs
Hans-G?nter@24870 78 done
pankso@3808 79
pankso@3093 80 # Move profile to /etc/lxpanel (/usr maybe read-only) and default config
Hans-G?nter@24870 81 cp -a $install/etc $fs
Hans-G?nter@24870 82 mv -f $fs/etc/xdg/lxpanel/default $fs/etc/xdg/lxpanel/original
Hans-G?nter@24870 83 cp -a $stuff/default $fs/etc/xdg/lxpanel
Hans-G?nter@24870 84 rm -rf $fs/etc/xdg/lxpanel/two_panels
pankso@12560 85
pankso@12560 86 # XDG autostart desktop file (lxsession will use it automaticaly)
Hans-G?nter@24870 87 cp -a $stuff/autostart $fs/etc/xdg
pankso@12560 88
Hans-G?nter@24870 89 cp -a $install/usr/share/lxpanel/ui $fs/usr/share/lxpanel
Hans-G?nter@24870 90 cp -a $install/usr/share/lxpanel/x* $fs/usr/share/lxpanel
pankso@610 91 }
al@18582 92
al@18582 93 post_install()
al@18582 94 {
al@18582 95 # clean LXPanel menu caches
al@19427 96 chroot "$1/" rm home/*/.cache/menus/* 2>/dev/null
al@19427 97 :
al@18582 98 }