wok-6.x annotate lxpanel/receipt @ rev 11841
perl-http-date: Sync with wok-tank.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Mon Feb 27 01:11:13 2012 -0500 (2012-02-27) |
parents | c4a1554d1721 |
children | 8a79e8cd918a |
rev | line source |
---|---|
pankso@341 | 1 # SliTaz package receipt. |
pankso@341 | 2 |
pankso@341 | 3 PACKAGE="lxpanel" |
devl547@11274 | 4 VERSION="0.5.8" |
pankso@341 | 5 CATEGORY="x-window" |
pankso@341 | 6 SHORT_DESC="Standard compliant desktop panel." |
pankso@341 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@341 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
rcx@3799 | 9 WEB_SITE="http://www.lxde.org/" |
pankso@341 | 10 WGET_URL="$SF_MIRROR/lxde/$TARBALL" |
pascal@2563 | 11 CONFIG_FILES="/etc/lxpanel/default" |
pankso@341 | 12 |
pankso@9694 | 13 DEPENDS="glibc-base glib libgio expat zlib menu-cache slitaz-icon \ |
pankso@10736 | 14 gtk+ alsa-lib wireless_tools" |
pankso@10736 | 15 BUILD_DEPENDS="gtk+-dev gettext expat-dev intltool menu-cache-dev \ |
pankso@10736 | 16 lxmenu-data alsa-lib-dev wireless_tools-dev" |
pankso@9694 | 17 |
pankso@341 | 18 # Rules to configure and make the package. |
pankso@341 | 19 compile_rules() |
pankso@341 | 20 { |
pankso@341 | 21 cd $src |
slaxemulator@9700 | 22 #patch -p1 -i $stuff/Fix-failure-to-react-to-keyboard-map-changes-initiat.patch |
pascal@11297 | 23 # Devnote : this patch shouldn't be necessary in next release of lxpanel (current : 0.5.8). |
pascal@11297 | 24 patch -p1 -i $stuff/configure_desktop_number.patch |
pascal@11297 | 25 patch -p1 -i $stuff/fix_position.patch |
gokhlayeh@11573 | 26 ./configure --with-plugins=all $CONFIGURE_ARGS && |
pankso@9694 | 27 make && make install |
pankso@341 | 28 } |
pankso@341 | 29 |
pankso@341 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@341 | 31 genpkg_rules() |
pankso@341 | 32 { |
pankso@3960 | 33 mkdir -p $fs/usr/share $fs/usr/lib |
pankso@9694 | 34 |
pankso@9694 | 35 cp -a $install/usr/bin $fs/usr |
pankso@9694 | 36 cp -a $install/usr/lib/lxpanel $fs/usr/lib |
pankso@9694 | 37 cp -a $install/usr/share/lxpanel $fs/usr/share |
pankso@3808 | 38 |
rcx@3799 | 39 # Remove a few "heavy" and unuseful images (ns* goes in extra) |
rcx@3799 | 40 for i in file-manager* stock_volume* gnome-[a-m]*.png \ |
pankso@3960 | 41 gnome-netstatus-[d-t]*.png my-* ns-*.png *lock-*.png |
pankso@3093 | 42 do |
pankso@3093 | 43 rm $fs/usr/share/lxpanel/images/$i |
pankso@3093 | 44 done |
pankso@3808 | 45 |
pankso@3093 | 46 # Custom images to match SliTaz theme. |
pankso@3093 | 47 cp -a stuff/images/* $fs/usr/share/lxpanel/images |
pankso@3808 | 48 |
pankso@799 | 49 # Remove plugins --> lxpanel-extra |
pankso@799 | 50 rm $fs/usr/lib/lxpanel/plugins/kbled.so |
pankso@9494 | 51 rm -rf $fs/usr/share/lxpanel/images/xkb-flags |
pankso@3808 | 52 |
pankso@3093 | 53 # Move profile to /etc/lxpanel (/usr maybe read-only) and default config |
pankso@671 | 54 mkdir $fs/etc |
pankso@671 | 55 mv -f $fs/usr/share/lxpanel/profile $fs/etc/lxpanel |
pankso@671 | 56 ln -s /etc/lxpanel $fs/usr/share/lxpanel/profile |
pankso@671 | 57 mv $fs/etc/lxpanel/default $fs/etc/lxpanel/original |
pankso@671 | 58 cp -a stuff/default $fs/etc/lxpanel |
pankso@3808 | 59 |
pankso@3093 | 60 # lxsession-logout fake |
pankso@3093 | 61 cat > $fs/usr/bin/lxsession-logout << "EOT" |
pankso@610 | 62 #!/bin/sh |
pankso@610 | 63 # lxsession-logout fake. |
pankso@610 | 64 # |
pankso@10736 | 65 tazbox logout & |
pankso@771 | 66 exit 0 |
pankso@610 | 67 EOT |
pascal@2088 | 68 chmod +x $fs/usr/bin/lxsession-logout |
pankso@610 | 69 } |