desktop/matchbox-panel: Updated for version 0.9.3

This commit is contained in:
Daniel de Kok 2010-05-13 00:22:50 +02:00 committed by Michiel van Wessem
parent 9d5a1edec2
commit 4fe08c2c36
5 changed files with 33 additions and 30 deletions

View file

@ -2,11 +2,4 @@ Matchbox is a lightweight environment for the X Window System, that
is specifically designed for embedded platforms such as handhelds
and set-top boxes.
This is a SlackBuild for the Matchbox panel. libmatchbox,
matchbox-window-manager, and matchbox-common are required to build
and run this package. These dependencies are available through
the Matchbox website, or as SlackBuilds.
The Matchbox homepage can be found at:
http://projects.o-hand.com/matchbox/
This requires libmatchbox, matchbox-window-manager, and matchbox-common.

View file

@ -1,5 +1,4 @@
#!/bin/sh
if [ -x usr/bin/update-desktop-database ]; then
./usr/bin/update-desktop-database ./usr/share/applications > /dev/null 2>&1
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi

View file

@ -22,9 +22,6 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# Exit on most errors
set -e
PRGNAM=matchbox-panel
VERSION=0.9.3
ARCH=${ARCH:-i486}
@ -38,48 +35,60 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
fi
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xjvf $CWD/$PRGNAM-$VERSION.tar.bz2
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
patch -p1 < $CWD/matchbox-panel-0.9.3-gcc4-no-nested-functions.patch
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
patch -p1 < $CWD/matchbox-panel-0.9.3-gcc4-no-nested-functions.patch
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--enable-startup-notification \
--enable-dnotify \
--enable-acpi-linux
--enable-acpi-linux \
--build=$ARCH-slackware-linux
make
make install-strip DESTDIR=$PKG
# Fixup some desktop files to be more spec-compliant
( cd $PKG/usr/share/applications
sed -i s'#Icon=minitime.png#Icon=minitime#' mb-applet-clock.desktop
sed -i s'#Icon=mbmenu.png#Icon=mbmenu#' mb-applet-menu-launcher.desktop
sed -i s'#Icon=minisys.png#Icon=minisys#' mb-applet-system-monitor.desktop
sed -i s'#Icon=signal-81-100.png#Icon=signal-81-100#' mb-applet-wireless.desktop
sed -i s'#Icon=mbterm.png#Icon=mbterm#' mb-launcher-term.desktop
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
( cd $PKG/usr/share/applications
sed -i s'#Icon=minitime.png#Icon=/usr/share/pixmaps/minitime.png#' mb-applet-clock.desktop
sed -i s'#Icon=mbmenu.png#con=/usr/share/pixmaps/mbmenu.png#' mb-applet-menu-launcher.desktop
sed -i s'#Icon=minisys.png#Icon=/usr/share/pixmaps/minisys.png#' mb-applet-system-monitor.desktop
sed -i s'#Icon=signal-81-100.png#Icon=/usr/share/pixmaps/signal-81-100.png#' mb-applet-wireless.desktop
sed -i s'#Icon=mbterm.png#Icon=/usr/share/pixmaps/mbterm.png#' mb-launcher-term.desktop
)
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
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View file

@ -3,6 +3,8 @@ VERSION="0.9.3"
HOMEPAGE="http://projects.o-hand.com/matchbox/"
DOWNLOAD="http://projects.o-hand.com/matchbox/sources/matchbox-panel/0.9/matchbox-panel-0.9.3.tar.bz2"
MD5SUM="56d1807636f3919e22e51896ab7ccd2e"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Daniel de Kok"
EMAIL="danieldk@pobox.com"
APPROVED="BP{k}"

View file

@ -5,7 +5,7 @@
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'.
|-----handy-ruler------------------------------------------------------|
|-----handy-ruler------------------------------------------------------|
matchbox-panel: matchbox-panel (The Matchbox panel)
matchbox-panel:
matchbox-panel: Matchbox is a lightweight environment for the X Window System,
@ -14,6 +14,6 @@ matchbox-panel: handhelds and set-top boxes.
matchbox-panel:
matchbox-panel: This package contains the Matchbox panel.
matchbox-panel:
matchbox-panel: The Matchbox homepage can be found at:
matchbox-panel: http://projects.o-hand.com/matchbox/
matchbox-panel:
matchbox-panel: Homepage: http://projects.o-hand.com/matchbox/
matchbox-panel:
matchbox-panel: