mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
desktop/kkbswitch: Initial import
This commit is contained in:
parent
1abe96c40c
commit
5e753e4a84
4 changed files with 86 additions and 0 deletions
7
desktop/kkbswitch/README
Normal file
7
desktop/kkbswitch/README
Normal file
|
@ -0,0 +1,7 @@
|
|||
KKBSwitch is a keyboard layout indicator for KDE 2 or 3. It is useful when you
|
||||
have configured the XKeyboard extension of your X Server to have more than one
|
||||
keyboard group (layout), for example US/ASCII and Russian. KKBSwitch displays
|
||||
an icon in the system tray that indicates which layout is currently active.
|
||||
Note that KKBSwitch does not help you configure XKeyboard, it merely serves as
|
||||
the indicator of the current layout. You still have to configure XKeyboard by
|
||||
editing the XF86Config file.
|
60
desktop/kkbswitch/kkbswitch.SlackBuild
Normal file
60
desktop/kkbswitch/kkbswitch.SlackBuild
Normal file
|
@ -0,0 +1,60 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for kkbswitch
|
||||
# Written by Audrius Kazukauskas <neobug@tornado.ktu.lt>
|
||||
|
||||
# Slightly modified by the SlackBuilds.org project
|
||||
# Exit on most errors
|
||||
set -e
|
||||
|
||||
PRGNAM=kkbswitch
|
||||
VERSION=1.4.3
|
||||
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 $TMP/$PRGNAM-$VERSION
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
cd $PRGNAM-$VERSION
|
||||
|
||||
chown -R root:root .
|
||||
chmod -R u+w,go+r-w,a-s .
|
||||
|
||||
KDEPREF=`kde-config --prefix`
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
--prefix=$KDEPREF \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--program-suffix="" \
|
||||
--program-prefix=""
|
||||
|
||||
make
|
||||
make install-strip DESTDIR=$PKG
|
||||
|
||||
gzip -9 $PKG/opt/kde/man/man1/kkbswitch.1
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README TODO \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
|
8
desktop/kkbswitch/kkbswitch.info
Normal file
8
desktop/kkbswitch/kkbswitch.info
Normal file
|
@ -0,0 +1,8 @@
|
|||
PRGNAM="kkbswitch"
|
||||
VERSION="1.4.3"
|
||||
HOMEPAGE="http://kkbswitch.sourceforge.net/"
|
||||
DOWNLOAD="http://dl.sourceforge.net/sourceforge/kkbswitch/kkbswitch-1.4.3.tar.gz"
|
||||
MD5SUM="f8e9bc82f6506e5d1e21ffafb6fef9c3"
|
||||
MAINTAINER="Audrius Kazukauskas"
|
||||
EMAIL="neobug@tornado.ktu.lt"
|
||||
APPROVED="BP{k}"
|
11
desktop/kkbswitch/slack-desc
Normal file
11
desktop/kkbswitch/slack-desc
Normal file
|
@ -0,0 +1,11 @@
|
|||
kkbswitch: KKBSwitch (Keyboard layout indicator)
|
||||
kkbswitch:
|
||||
kkbswitch: KKBSwitch is a keyboard layout indicator for KDE 2 or 3. It is
|
||||
kkbswitch: usefull when you have configured the XKeyboard extension of your
|
||||
kkbswitch: X Server to have more than one keyboard group (layout), for example
|
||||
kkbswitch: US/ASCII and Russian. KKBSwitch displays an icon in the system tray
|
||||
kkbswitch: that indicates which layout is currently active. Note that
|
||||
Kkkbswitch: KBSwitch does not help you configure XKeyboard, it merely serves
|
||||
kkbswitch: as the indicator of the current layout. You still have to configure
|
||||
kkbswitch: XKeyboard by editing the XF86Config file.
|
||||
kkbswitch:
|
Loading…
Reference in a new issue