games/roccat-tools: Added (Roccat common files).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
99335fe04a
commit
4e5acca02d
|
@ -0,0 +1,93 @@
|
|||
The roccat-tools package contains the userland applications needed to
|
||||
configure and make extended use of the supported Roccat devices. It
|
||||
consists of a shared library and other files shared by device specific
|
||||
applications for Roccat hardware.
|
||||
|
||||
Currently the following devices are supported:
|
||||
|
||||
# Keyboards
|
||||
Arvo (ROC-12-500) [arvo]
|
||||
Isku (ROC-12-700) [isku]
|
||||
IskuFX (ROC-12-900) [iskufx]
|
||||
Ryos MK/Glow/Pro (ROC-12-601, ROC-12-750, ROC-12-850) [ryosmk]
|
||||
Ryos TKL Pro (ROC-12-650) [ryostkl]
|
||||
|
||||
# Mice
|
||||
Kone (ROC-11-500, ROC-11-501) [kone]
|
||||
Kone[+] (ROC-11-800) [koneplus]
|
||||
KonePure (ROC-11-700) [konepure]
|
||||
KonePureMilitary (ROC-11-711) [konepuremilitary]
|
||||
KonePureOptical (ROC-11-710) [konepureoptical]
|
||||
KonePureOpticalBlack (ROC-11-714-B) [konepureoptical]
|
||||
KoneXTD (ROC-11-810) [konextd]
|
||||
KoneXTDOptical (ROC-11-811) [konextdoptical]
|
||||
Kova[+] (ROC-11-520) [kovaplus]
|
||||
Lua (ROC-11-310) [lua]
|
||||
Nyth (ROC-11-900, ?) [nyth]
|
||||
Pyra (ROC-11-300, ROC-11-510) [pyra]
|
||||
Savu (ROC-11-600) [savu]
|
||||
Tyon Black/White (ROC-11-850, ROC-11-851) [tyon]
|
||||
|
||||
Support for all devices is built by default. To compile support for a
|
||||
specific device set the DEVICES variable to a semicolon delimited list
|
||||
of devices to compile support for, such as
|
||||
|
||||
DEVICES="isku;koneplus"
|
||||
|
||||
You will need a dedicated group to run roccat-tools. This will add the
|
||||
'roccat' group and not conflict with anything else on SBo:
|
||||
|
||||
groupadd -r -g 318 roccat
|
||||
|
||||
Set the GROUP variable to whatever you create here before running the
|
||||
script, otherwise the default 'roccat' will be used.
|
||||
|
||||
To use the device features as normal user you have to add yourself and
|
||||
all other users to the group that was created
|
||||
|
||||
usermod -a -G $GROUP $USER
|
||||
|
||||
Do a logout/login to apply your new group ownership and replug your
|
||||
device and everything should work as expected.
|
||||
|
||||
You can optionally compile support for Lua 5.1 or 5.2 if you want
|
||||
scripting possibilities. This will add lua or lua52 as a dependency,
|
||||
both available at SBo. Set the Lua version like this:
|
||||
|
||||
LUAVERSION="5.1"
|
||||
|
||||
If you have an old Kone (ROC-11-500, ROC-11-501) you, in certain cases,
|
||||
may additionally need the kmod-roccat package which is currently not
|
||||
avaiable at SBo.
|
||||
|
||||
# This package contains
|
||||
|
||||
* roccateventhandler
|
||||
|
||||
A eventhandler that takes care of displaying OSD events and handles
|
||||
quicklaunching and talk events.
|
||||
|
||||
* roccatDEVICEcontrol
|
||||
|
||||
A console application mainly meant as helper for background tasks.
|
||||
For basic usage information on roccatDEVICEcontrol please read
|
||||
the manpage.
|
||||
|
||||
* roccatDEVICEconfig
|
||||
|
||||
Graphical user interfaces to modify the profiles of your devices.
|
||||
You should find them in the settings folder of your window
|
||||
manager, or you can call them from the console.
|
||||
|
||||
# Known issues
|
||||
|
||||
If you get annoying SHIFT_L key events when entering keys in
|
||||
DEVICEconfig you might have a video application like xine running
|
||||
which tries to disable the screensaver in the most stupid way. You
|
||||
have to switch off this functionality or close the culprit.
|
||||
|
||||
If some key events don't show up in DEVICEconfig then you might have
|
||||
software like xbindkeys running. You have to turn off these tools
|
||||
for editing keys or macros in DEVICEconfig. Another possibility is
|
||||
that the translation table is missing some keys (in fact at this
|
||||
time it only supports a standard 105-keys keyboard)
|
|
@ -0,0 +1,16 @@
|
|||
if [ -x /usr/bin/update-desktop-database ]; then
|
||||
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
|
||||
fi
|
||||
|
||||
if [ -x /usr/bin/update-mime-database ]; then
|
||||
/usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
|
||||
fi
|
||||
|
||||
if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
|
||||
if [ -x /usr/bin/gtk-update-icon-cache ]; then
|
||||
/usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
|
||||
fi
|
||||
fi
|
||||
|
||||
/sbin/ldconfig
|
||||
/sbin/udevadm control --reload-rules
|
|
@ -0,0 +1,133 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for roccat-tools
|
||||
|
||||
# Copyright 2015 Gerardo Zamudio <gerardo.zamudio@linux.com> Mexico City, Mexico
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
# permitted provided that the following conditions are met:
|
||||
#
|
||||
# 1. Redistributions of this script must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
||||
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
||||
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
||||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
PRGNAM=roccat-tools
|
||||
VERSION=${VERSION:-3.7.1}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i486 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
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"
|
||||
else
|
||||
SLKCFLAGS="-O2"
|
||||
LIBDIRSUFFIX=""
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
GROUP=${GROUP:-roccat}
|
||||
|
||||
# Check the system group for roccat:
|
||||
if ! grep -q ^"$GROUP": /etc/group ; then
|
||||
echo " You will need a dedicated group to run roccat-tools"
|
||||
echo " # groupadd -r -g 318 $GROUP"
|
||||
echo " should do the job."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar xvjf $CWD/$PRGNAM-$VERSION.tar.bz2
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find -L . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||
-o -perm 511 \) -exec chmod 755 {} \; -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
if [ "${DEVICES:-all}" == "all" ]; then
|
||||
HW=""
|
||||
else
|
||||
HW="-DDEVICES='$DEVICES'"
|
||||
fi
|
||||
|
||||
if [ "${LUAVERSION:-no}" == "no" ]; then
|
||||
LUA=""
|
||||
else
|
||||
LUA="-DWITH_LUA='$LUAVERSION'"
|
||||
fi
|
||||
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake \
|
||||
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
$HW \
|
||||
$LUA \
|
||||
-DCMAKE_BUILD_TYPE=Release ..
|
||||
make
|
||||
make install DESTDIR=$PKG
|
||||
cd ..
|
||||
|
||||
mkdir -p $PKG/var/lib/roccat
|
||||
chown root:$GROUP $PKG/var/lib/roccat
|
||||
chmod 2770 $PKG/var/lib/roccat
|
||||
|
||||
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
||||
# Man pages
|
||||
mkdir -p $PKG/usr/man/de
|
||||
mkdir -p $PKG/usr/man/en
|
||||
mv $PKG/usr/share/man/en/man1 $PKG/usr/man/en
|
||||
mv $PKG/usr/share/man/de/man1 $PKG/usr/man/de
|
||||
|
||||
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
||||
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
||||
|
||||
rm -rf $PKG/usr/share/man
|
||||
|
||||
mkdir -p $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
|
||||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
|
@ -0,0 +1,10 @@
|
|||
PRGNAM="roccat-tools"
|
||||
VERSION="3.7.1"
|
||||
HOMEPAGE="Homepage: http://sourceforge.net/projects/roccat/"
|
||||
DOWNLOAD="http://downloads.sourceforge.net/roccat/roccat-tools-3.7.1.tar.bz2"
|
||||
MD5SUM="ef0d0b990fbdbf66993fcee5869430bf"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES="libgaminggear"
|
||||
MAINTAINER="Gerardo Zamudio"
|
||||
EMAIL="gerardo.zamudio@linux.com"
|
|
@ -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 ':' except on otherwise blank lines.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
roccat-tools: roccat-tools (Roccat common files)
|
||||
roccat-tools:
|
||||
roccat-tools: The roccat-tools package contains the userland applications needed to
|
||||
roccat-tools: configure and make extended use of the supported Roccat devices. It
|
||||
roccat-tools: consists of a shared library and other files shared by device
|
||||
roccat-tools: specific applications for Roccat hardware.
|
||||
roccat-tools:
|
||||
roccat-tools:
|
||||
roccat-tools: Homepage: http://sourceforge.net/projects/roccat/
|
||||
roccat-tools:
|
||||
roccat-tools:
|
Loading…
Reference in New Issue