wok-current annotate lxpanel/receipt @ rev 22759
updated libmagic, libmagic-dev and python-magic (5.36 -> 5.38)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Jan 24 16:51:24 2020 +0100 (2020-01-24) |
parents | f30d063d7a89 |
children | f785404cbaa7 |
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" |
rcx@3799 | 9 WEB_SITE="http://www.lxde.org/" |
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 |
pankso@341 | 30 # Rules to configure and make the package. |
pankso@341 | 31 compile_rules() |
pankso@341 | 32 { |
pankso@16702 | 33 # Match default desktop colors |
pankso@16702 | 34 sed -i s'/gdk_color_parse("green"/gdk_color_parse("#cfcfcf"/' \ |
al@21314 | 35 $src/plugins/cpu/cpu.c || return 1 |
al@14260 | 36 ./configure \ |
al@14260 | 37 --sysconfdir=/etc \ |
al@14260 | 38 --localstatedir=/var \ |
pankso@16260 | 39 --with-plugins="$pluglist" \ |
al@14260 | 40 $CONFIGURE_ARGS && |
pankso@16260 | 41 make && make install |
pankso@341 | 42 } |
pankso@341 | 43 |
pankso@341 | 44 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@341 | 45 genpkg_rules() |
pankso@341 | 46 { |
al@14260 | 47 mkdir -p \ |
al@21314 | 48 $fs/usr/lib/lxpanel \ |
al@14260 | 49 $fs/usr/share/lxpanel/images \ |
al@14260 | 50 $fs/etc/lxpanel \ |
al@14260 | 51 $fs/etc/xdg |
pankso@12560 | 52 |
pankso@9694 | 53 cp -a $install/usr/bin $fs/usr |
al@14260 | 54 |
al@14260 | 55 # Plugins (kbled -> lxpanel-extra) |
al@21314 | 56 cp -a $install/usr/lib/lxpanel/*.so* $fs/usr/lib/lxpanel/ |
al@21314 | 57 cp -a $install/usr/lib/lxpanel/plugins $fs/usr/lib/lxpanel/ |
al@14260 | 58 find $fs -name kbled.so -delete |
pankso@15909 | 59 find $fs -name wnckpager.so -delete |
pankso@3808 | 60 |
al@14260 | 61 # Images |
al@14260 | 62 imgs=usr/share/lxpanel/images |
al@14260 | 63 for i in clock cpufreq-icon my-computer; do |
al@14260 | 64 cp -a $install/$imgs/$i.png $fs/$imgs |
pankso@3093 | 65 done |
pankso@3808 | 66 |
pankso@3093 | 67 # Move profile to /etc/lxpanel (/usr maybe read-only) and default config |
al@21314 | 68 cp -a $install/etc $fs/ |
al@21314 | 69 mv -f $fs/etc/xdg/lxpanel/default $fs/etc/xdg/lxpanel/original |
al@21314 | 70 cp -a $stuff/default $fs/etc/xdg/lxpanel |
al@21314 | 71 rm -rf $fs/etc/xdg/lxpanel/two_panels |
pankso@12560 | 72 |
pankso@12560 | 73 # XDG autostart desktop file (lxsession will use it automaticaly) |
pankso@12560 | 74 cp -a $stuff/autostart $fs/etc/xdg |
pankso@12560 | 75 |
al@14260 | 76 cp -a $install/usr/share/lxpanel/ui $fs/usr/share/lxpanel |
al@14260 | 77 cp -a $install/usr/share/lxpanel/x* $fs/usr/share/lxpanel |
pankso@610 | 78 } |
al@18582 | 79 |
al@18582 | 80 post_install() |
al@18582 | 81 { |
al@18582 | 82 # clean LXPanel menu caches |
al@19427 | 83 chroot "$1/" rm home/*/.cache/menus/* 2>/dev/null |
al@19427 | 84 : |
al@18582 | 85 } |