mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
desktop/xxkb: Added to 12.2 repository
This commit is contained in:
parent
a142ded97a
commit
73e36e2c47
5 changed files with 97 additions and 0 deletions
12
desktop/xxkb/Imakefile.patch
Normal file
12
desktop/xxkb/Imakefile.patch
Normal file
|
@ -0,0 +1,12 @@
|
|||
diff -Nur xxkb.orig/Imakefile xxkb/Imakefile
|
||||
--- xxkb.orig/Imakefile 2007-03-14 16:54:53.000000000 -0500
|
||||
+++ xxkb/Imakefile 2009-05-17 15:43:25.028469025 -0500
|
||||
@@ -3,7 +3,7 @@
|
||||
BASEDIR = $(PROJECTROOT)
|
||||
BINDIR = $(BASEDIR)/bin
|
||||
PIXMAPDIR = $(BASEDIR)/share/xxkb
|
||||
-LOCAL_LIBRARIES = $(XONLYLIB) -lXpm -lXt
|
||||
+LOCAL_LIBRARIES = $(XONLYLIB) -lXpm -lXt -lXext
|
||||
|
||||
OBJS = xxkb.o resource.o wlist.o
|
||||
PIXMAPS = pixmaps/by15.xpm pixmaps/by48.xpm \
|
5
desktop/xxkb/README
Normal file
5
desktop/xxkb/README
Normal file
|
@ -0,0 +1,5 @@
|
|||
The xxkb program is a keyboard layout switcher and indicator. Unlike the
|
||||
programs that reload keyboard maps and use their own hot-keys, xxkb is a
|
||||
simple GUI for XKB (X KeyBoard extension) and just sends commands to and
|
||||
accepts events from XKB. That means that it will work with the existing
|
||||
setup of your X Server without any modifications.
|
19
desktop/xxkb/slack-desc
Normal file
19
desktop/xxkb/slack-desc
Normal 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-------------------------------------------------------|
|
||||
xxkb: xxkb (keyboard layout switcher and indicator)
|
||||
xxkb:
|
||||
xxkb: The xxkb program is a keyboard layout switcher and indicator. Unlike
|
||||
xxkb: the programs that reload keyboard maps and use their own hot-keys,
|
||||
xxkb: xxkb is a simple GUI for XKB (X KeyBoard extension) and just sends
|
||||
xxkb: commands to and accepts events from XKB. That means that it will work
|
||||
xxkb: with the existing setup of your X Server without any modifications.
|
||||
xxkb:
|
||||
xxkb: Homepage: http://sourceforge.net/projects/xxkb
|
||||
xxkb:
|
||||
xxkb:
|
53
desktop/xxkb/xxkb.SlackBuild
Normal file
53
desktop/xxkb/xxkb.SlackBuild
Normal file
|
@ -0,0 +1,53 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for xxkb
|
||||
# written by Cyril A. Sluchanko
|
||||
# revision date 2009/04/26
|
||||
|
||||
PRGNAM=xxkb
|
||||
VERSION=1.11
|
||||
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"
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
rm -rf $TMP/$PRGNAM-$VERSION
|
||||
cd $TMP
|
||||
tar xvf $CWD/$PRGNAM-$VERSION-src.tar.gz
|
||||
cd $PRGNAM
|
||||
chown -R root:root .
|
||||
chmod -R u+w,go+r-w,a-s .
|
||||
|
||||
# We need to patch Imakefile to have xxkb compiled successfully
|
||||
patch -p1 < $CWD/Imakefile.patch
|
||||
|
||||
xmkmf
|
||||
make
|
||||
make install DESTDIR=$PKG
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a LICENSE README README.koi8 README-Linux.koi8 CHANGES.koi8 \
|
||||
$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/xxkb/xxkb.info
Normal file
8
desktop/xxkb/xxkb.info
Normal file
|
@ -0,0 +1,8 @@
|
|||
PRGNAM="xxkb"
|
||||
VERSION="1.11"
|
||||
HOMEPAGE="http://sourceforge.net/projects/xxkb"
|
||||
DOWNLOAD="http://downloads.sourceforge.net/xxkb/xxkb-1.11-src.tar.gz"
|
||||
MD5SUM="c2e5c7f3285033f0e26b358ef95a7c89"
|
||||
MAINTAINER="Cyril A. Sluchanko"
|
||||
EMAIL="cyrilas@hotmail.com"
|
||||
APPROVED="rworkman"
|
Loading…
Reference in a new issue