wok-6.x view lxpanel/receipt @ rev 14216
vlc-plugin: libtool files removed
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Sat Mar 16 21:52:30 2013 +0100 (2013-03-16) |
parents | 49e1774e4196 |
children | bf872cb6f5c1 |
line source
1 # SliTaz package receipt.
3 PACKAGE="lxpanel"
4 VERSION="0.5.10"
5 CATEGORY="x-window"
6 SHORT_DESC="Standard compliant desktop panel."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="${PACKAGE}_${VERSION}.orig.tar.xz"
9 WEB_SITE="http://www.lxde.org/"
10 #WGET_URL="$SF_MIRROR/lxde/$TARBALL"
11 WGET_URL="http://ftp.de.debian.org/debian/pool/main/l/$PACKAGE/$TARBALL"
12 CONFIG_FILES="/etc/lxpanel/default"
14 DEPENDS="glibc-base glib libgio expat zlib menu-cache slitaz-icon \
15 gtk+ alsa-lib wireless_tools libwnck lxsession"
16 BUILD_DEPENDS="gtk+-dev gettext expat-dev intltool menu-cache-dev \
17 lxmenu-data alsa-lib-dev wireless_tools-dev libwnck-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $src
23 patch -p0 -i $stuff/cpu-size-color.patch || exit 1
24 ./configure --with-plugins=all $CONFIGURE_ARGS &&
25 make && make install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr/share $fs/usr/lib $fs/etc/xdg
33 cp -a $install/usr/bin $fs/usr
34 cp -a $install/usr/lib/lxpanel $fs/usr/lib
35 cp -a $install/usr/share/lxpanel $fs/usr/share
37 # Remove a few "heavy" and unuseful images (ns* goes in extra)
38 for i in file-manager* *volume* mute.png gnome-[a-m]*.png \
39 gnome-netstatus-*.png my-* ns-*.png *lock-*.png \
40 background.png window-manager.png
41 do
42 rm $fs/usr/share/lxpanel/images/$i
43 done
45 # Remove plugins --> lxpanel-extra
46 rm $fs/usr/lib/lxpanel/plugins/kbled.so
47 rm -rf $fs/usr/share/lxpanel/images/xkb-flags
49 # Move profile to /etc/lxpanel (/usr maybe read-only) and default config
50 mkdir $fs/etc
51 mv -f $fs/usr/share/lxpanel/profile $fs/etc/lxpanel
52 ln -sf /etc/lxpanel $fs/usr/share/lxpanel/profile
53 mv -f $fs/etc/lxpanel/default $fs/etc/lxpanel/original
54 cp -a $stuff/default $fs/etc/lxpanel
56 rm -rf $fs/etc/lxpanel/two_panels
58 # XDG autostart desktop file (lxsession will use it automaticaly)
59 cp -a $stuff/autostart $fs/etc/xdg
61 # Make images symlinks so it feet SliTaz theme
62 cd $fs/usr/share/lxpanel/images
63 ln -s /usr/share/icons/SliTaz/status/32/network-idle.png ns-connected.png
64 ln -s /usr/share/icons/SliTaz/status/32/network-offline.png ns-disconnect.png
65 ln -s /usr/share/icons/SliTaz/status/32/network-receive.png ns-recvdata.png
66 ln -s /usr/share/icons/SliTaz/status/32/network-receive.png ns-senddata.png
67 ln -s /usr/share/icons/SliTaz/status/32/nm-adhoc.png ns-bothrs.png
68 ln -s /usr/share/icons/SliTaz/status/32/network-error.png ns-problem.png
69 }