diff options
Diffstat (limited to 'desktop/lxpanel')
-rw-r--r-- | desktop/lxpanel/README | 11 | ||||
-rw-r--r-- | desktop/lxpanel/default.in.diff | 18 | ||||
-rw-r--r-- | desktop/lxpanel/doinst.sh | 15 | ||||
-rw-r--r-- | desktop/lxpanel/lxpanel.SlackBuild | 83 | ||||
-rw-r--r-- | desktop/lxpanel/lxpanel.info | 8 | ||||
-rw-r--r-- | desktop/lxpanel/slack-desc | 19 |
6 files changed, 154 insertions, 0 deletions
diff --git a/desktop/lxpanel/README b/desktop/lxpanel/README new file mode 100644 index 0000000000000..fd461331eded0 --- /dev/null +++ b/desktop/lxpanel/README @@ -0,0 +1,11 @@ +LXpanel (NETWM/EWMH compliant lightweight x11 desktop panel) + +Based on fbpanel, lxpanel provides an application menu generated from +.desktop files as well as a launchbar, taskbar, and various plugins. + +The system-wide default configuration file is located under +/usr/share/lxpanel/default. Users can easily change their configuration +via the preferences dialog. + +Lxpanelctl is used to control the behavior of lxpanel during runtime. +See the README file included with the source code for details. diff --git a/desktop/lxpanel/default.in.diff b/desktop/lxpanel/default.in.diff new file mode 100644 index 0000000000000..ab08a513ca25a --- /dev/null +++ b/desktop/lxpanel/default.in.diff @@ -0,0 +1,18 @@ +--- data/default.in~ 2007-05-27 13:16:01.000000000 +0200 ++++ data/default.in 2007-05-27 13:22:56.000000000 +0200 +@@ -134,13 +134,10 @@ + type = launchbar + config { + button { +- id = pcmanfm.desktop ++ id = mozilla-firefox.desktop + } + button { +- id = gnome-terminal.desktop +- } +- button { +- id = firefox.desktop ++ id = mozilla-thunderbird.desktop + } + } + } diff --git a/desktop/lxpanel/doinst.sh b/desktop/lxpanel/doinst.sh new file mode 100644 index 0000000000000..859b74c6b2fa0 --- /dev/null +++ b/desktop/lxpanel/doinst.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +config() { + NEW="$1" + OLD="`dirname $NEW`/`basename $NEW .new`" + # If there's no config file by that name, mv it over: + if [ ! -r $OLD ]; then + mv $NEW $OLD + elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy + rm $NEW + fi + # Otherwise, we leave the .new copy for the admin to consider... +} + +config usr/share/lxpanel/default.new diff --git a/desktop/lxpanel/lxpanel.SlackBuild b/desktop/lxpanel/lxpanel.SlackBuild new file mode 100644 index 0000000000000..2618211139ed2 --- /dev/null +++ b/desktop/lxpanel/lxpanel.SlackBuild @@ -0,0 +1,83 @@ +#!/bin/sh +# +# Slackware build script for lxpanel +# (C) 2007 Michael Wagner <lapinours@web.de> +# +# This program is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; either version 2 of the License, or (at your +# option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General +# Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# + +# Modified by the SlackBuilds.org project in accordance with GPL v2 + +PRGNAM=lxpanel +VERSION=0.2.4 +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +DOCS="ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL NEWS README" + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +fi + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP || exit 1 +rm -rf $PRGNAM-$VERSION +tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1 +cd $PRGNAM-$VERSION || exit 1 +chown -R root:root . +chmod -R u+w,go+r-w,a-s . + +# Patch default.in to use programs included in Slackware +patch -p0 < $CWD/default.in.diff || exit 1 + +# Note the addition of LDFLAGS so that the linker will find X11 in /usr/X11R6 +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="SLKCFLAGS" \ +LDFLAGS=-L/usr/X11R6/lib \ +./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + || exit 1 + +make || exit 1 +make install DESTDIR=$PKG || exit 1 + +( cd $PKG + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null +) + +# Don't overwrite the default configuration file. +mv $PKG/usr/share/$PRGNAM/default $PKG/usr/share/$PRGNAM/default.new + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chmod 644 $PKG/usr/doc/$PRGNAM-$VERSION/* + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz diff --git a/desktop/lxpanel/lxpanel.info b/desktop/lxpanel/lxpanel.info new file mode 100644 index 0000000000000..f76564b089eaf --- /dev/null +++ b/desktop/lxpanel/lxpanel.info @@ -0,0 +1,8 @@ +PRGNAM="lxpanel" +VERSION="0.2.4" +HOMEPAGE="http://lxde.sourceforge.net" +DOWNLOAD="http://dl.sourceforge.net/lxde/lxpanel-0.2.4.tar.gz" +MD5SUM="37d0e9f2993fc63d9e7e1684552e10b4" +MAINTAINER="Michael Wagner" +EMAIL="lapinours@web.de" +APPROVED="rworkman" diff --git a/desktop/lxpanel/slack-desc b/desktop/lxpanel/slack-desc new file mode 100644 index 0000000000000..7e8e6ad089be1 --- /dev/null +++ b/desktop/lxpanel/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +lxpanel: LXpanel (NETWM/EWMH compliant lightweight x11 desktop panel) +lxpanel: +lxpanel: Based on fbpanel, lxpanel provides an application menu generated from +lxpanel: .desktop files as well as a launchbar, taskbar and various plugins. +lxpanel: +lxpanel: Homepage: http://lxde.sourceforge.net +lxpanel: +lxpanel: +lxpanel: +lxpanel: +lxpanel: |