wok-next annotate lxpanel/receipt @ rev 18582
Tiny fixes
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Nov 11 21:14:28 2015 +0200 (2015-11-11) |
parents | c9e270dd464f |
children | 67354f747d83 |
rev | line source |
---|---|
pankso@341 | 1 # SliTaz package receipt. |
pankso@341 | 2 |
pankso@341 | 3 PACKAGE="lxpanel" |
pankso@16702 | 4 VERSION="0.6.2" |
pankso@341 | 5 CATEGORY="x-window" |
al@17992 | 6 SHORT_DESC="LXDE panel" |
pankso@341 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15002 | 8 LICENSE="GPL2" |
rcx@3799 | 9 WEB_SITE="http://www.lxde.org/" |
al@14260 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
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" |
pankso@16260 | 17 DEPENDS="alsa-lib gtk+ menu-cache wireless_tools libxml2 slitaz-menus" |
pankso@16260 | 18 BUILD_DEPENDS="gtk+-dev menu-cache-dev alsa-lib-dev wireless_tools-dev \ |
pankso@16260 | 19 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"/' \ |
pankso@16702 | 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@14260 | 48 $fs/usr/lib \ |
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) |
pankso@9694 | 56 cp -a $install/usr/lib/lxpanel $fs/usr/lib |
al@14260 | 57 find $fs -name kbled.so -delete |
pankso@15909 | 58 find $fs -name wnckpager.so -delete |
pankso@3808 | 59 |
al@14260 | 60 # Images |
al@14260 | 61 imgs=usr/share/lxpanel/images |
al@14260 | 62 for i in clock cpufreq-icon my-computer; do |
al@14260 | 63 cp -a $install/$imgs/$i.png $fs/$imgs |
pankso@3093 | 64 done |
pankso@3808 | 65 |
pankso@3093 | 66 # Move profile to /etc/lxpanel (/usr maybe read-only) and default config |
al@14260 | 67 cp -a $install/usr/share/lxpanel/profile/* $fs/etc/lxpanel |
slaxemulator@13159 | 68 ln -sf /etc/lxpanel $fs/usr/share/lxpanel/profile |
slaxemulator@13159 | 69 mv -f $fs/etc/lxpanel/default $fs/etc/lxpanel/original |
pankso@12307 | 70 cp -a $stuff/default $fs/etc/lxpanel |
pankso@12307 | 71 rm -rf $fs/etc/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@18582 | 83 for i in /home/*/.cache/menus; do |
al@18582 | 84 [ -d "$i" ] && rm $i/* |
al@18582 | 85 done |
al@18582 | 86 } |