wok annotate lxpanel/receipt @ rev 24525

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