wok annotate lxpanel/receipt @ rev 16687

Add suport for brazilian laptops & netbooks with us-internacional keyboards
author Claudinei Pereira <claudinei@slitaz.org>
date Tue May 20 20:29:19 2014 -0300 (2014-05-20)
parents f0abef5a98b3
children f924b8021268
rev   line source
pankso@341 1 # SliTaz package receipt.
pankso@341 2
pankso@341 3 PACKAGE="lxpanel"
pankso@15909 4 VERSION="0.6.1"
pankso@341 5 CATEGORY="x-window"
al@14260 6 SHORT_DESC="Lightweight X11 desktop 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@14260 11 WGET_URL="$SF_MIRROR/lxde/LXPanel%20%28desktop%20panel%29/LXPanel%20$VERSION/$TARBALL"
pascal@2563 12 CONFIG_FILES="/etc/lxpanel/default"
pankso@15909 13 TAGS="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 {
al@14260 33 ./configure \
al@14260 34 --sysconfdir=/etc \
al@14260 35 --localstatedir=/var \
pankso@16260 36 --with-plugins="$pluglist" \
al@14260 37 $CONFIGURE_ARGS &&
pankso@16260 38 make && make install
pankso@341 39 }
pankso@341 40
pankso@341 41 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@341 42 genpkg_rules()
pankso@341 43 {
al@14260 44 mkdir -p \
al@14260 45 $fs/usr/lib \
al@14260 46 $fs/usr/share/lxpanel/images \
al@14260 47 $fs/etc/lxpanel \
al@14260 48 $fs/etc/xdg
pankso@12560 49
pankso@9694 50 cp -a $install/usr/bin $fs/usr
al@14260 51
al@14260 52 # Plugins (kbled -> lxpanel-extra)
pankso@9694 53 cp -a $install/usr/lib/lxpanel $fs/usr/lib
al@14260 54 find $fs -name kbled.so -delete
pankso@15909 55 find $fs -name wnckpager.so -delete
pankso@3808 56
al@14260 57 # Images
al@14260 58 imgs=usr/share/lxpanel/images
al@14260 59 for i in clock cpufreq-icon my-computer; do
al@14260 60 cp -a $install/$imgs/$i.png $fs/$imgs
pankso@3093 61 done
pankso@3808 62
pankso@3093 63 # Move profile to /etc/lxpanel (/usr maybe read-only) and default config
al@14260 64 cp -a $install/usr/share/lxpanel/profile/* $fs/etc/lxpanel
slaxemulator@13159 65 ln -sf /etc/lxpanel $fs/usr/share/lxpanel/profile
slaxemulator@13159 66 mv -f $fs/etc/lxpanel/default $fs/etc/lxpanel/original
pankso@12307 67 cp -a $stuff/default $fs/etc/lxpanel
pankso@12307 68 rm -rf $fs/etc/lxpanel/two_panels
pankso@12560 69
pankso@12560 70 # XDG autostart desktop file (lxsession will use it automaticaly)
pankso@12560 71 cp -a $stuff/autostart $fs/etc/xdg
pankso@12560 72
al@14260 73 cp -a $install/usr/share/lxpanel/ui $fs/usr/share/lxpanel
al@14260 74 cp -a $install/usr/share/lxpanel/x* $fs/usr/share/lxpanel
pankso@610 75 }