desktop/kbfx: Added to 12.0 repository

This commit is contained in:
core 2010-05-11 20:00:07 +02:00 committed by Robby Workman
parent 982d7e9e52
commit 1fcb0854d0
5 changed files with 101 additions and 0 deletions

6
desktop/kbfx/README Normal file
View file

@ -0,0 +1,6 @@
KBFX - An alternative to the classical K-Menu button.
KBFX is an alternative to the classical K-Menu button and its menu.
It improves the user experience by enabling the user to set a
bigger (and thus more visible) start button and by finally replacing
the Win95-like K-Menu.

5
desktop/kbfx/doinst.sh Normal file
View file

@ -0,0 +1,5 @@
if [ -x usr/bin/update-desktop-database ]; then
usr/bin/update-desktop-database usr/share/applications >/dev/null 2>&1
fi

View file

@ -0,0 +1,63 @@
#!/bin/sh
# Slackware build script for kbfx
# Written by core (eroc@linuxmail.org)
set -e
PRGNAM=kbfx
VERSION=0.4.9.3.1
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
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
rm -rf $PRGNAM-$VERSION
tar -jxvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
KDEPREF=$(kde-config --prefix) || true
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
cmake -DCMAKE_INSTALL_PREFIX=$KDEPREF
make
make install DESTDIR=$PKG
( 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
)
# Correct the permisions for the libs
find $PKG/usr/lib/ -type f -exec chmod 755 {} \;
# The documentation (HTML/ and $PRGNAM-$VERSION/ dirs) is
# under $PKG/usr/share/doc so just lets move $PRGNAM-$VERSION
# to the right place.
mkdir -p $PKG/usr/doc
mv $PKG/usr/share/doc/$PRGNAM-$VERSION $PKG/usr/doc
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
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

8
desktop/kbfx/kbfx.info Normal file
View file

@ -0,0 +1,8 @@
PRGNAM="kbfx"
VERSION="0.4.9.3.1"
HOMEPAGE="http://www.kbfx.org"
DOWNLOAD="http://downloads.sourceforge.net/kbfx/kbfx-0.4.9.3.1.tar.bz2"
MD5SUM="47bb5328a3f6dd2cc3f21279b9d0435c"
MAINTAINER="core"
EMAIL="eroc@linuxmail.org"
APPROVED="rworkman"

19
desktop/kbfx/slack-desc Normal file
View file

@ -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------------------------------------------------------|
kbfx: KBFX (An alternative to the classical K-Menu button)
kbfx:
kbfx: KBFX is an alternative to the classical K-Menu button and its menu.
kbfx: It improves the user experience by enabling the user to set a
kbfx: bigger (and thus more visible) start button and by finally replacing
kbfx: the Win95-like K-Menu.
kbfx:
kbfx: Homepage: http://www.kbfx.org
kbfx:
kbfx:
kbfx: