-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Thiago Melo
committed
Nov 8, 2024
1 parent
7336b93
commit 82a733e
Showing
5 changed files
with
165 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Slackbuild for Input Leap | ||
|
||
Tested on Slackware64-current (15.0) 2024 | ||
|
||
Input Leap is software that mimics the functionality of a KVM switch, which historically would allow you to use a single keyboard and mouse to control multiple computers by physically turning a dial on the box to switch the machine you're controlling at any given moment. Input Leap does this in software, allowing you to tell it which machine to control by moving your mouse to the edge of the screen, or by using a keypress to switch focus to a different system. | ||
|
||
At the moment, Input Leap is not compatible with Synergy. | ||
|
||
Input Leap needs to be installed on all machines that will share keyboard and mouse. | ||
What's different? | ||
|
||
Whereas Synergy has moved beyond its goals from the 1.x era, Input Leap aims to maintain that simplicity. Input Leap will let you use your keyboard and mouse from one computer to control one or more other computers. | ||
|
||
Clipboard sharing is supported. | ||
|
||
That's it. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
#!/bin/bash | ||
# | ||
# Slackware build script for input-leap (Synergy fork) | ||
# Written by Mario Antunes ([email protected]) | ||
# 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. | ||
|
||
cd $(dirname $0) ; CWD=$(pwd) | ||
|
||
PRGNAM=input-leap | ||
VERSION=${VERSION:-3.0.2} | ||
BUILD=${BUILD:-1} | ||
TAG=${TAG:-_SBo} | ||
PKGTYPE=${PKGTYPE:-tgz} | ||
GTEST=https://github.com/google/googletest/archive/v1.15.2/googletest-1.15.2.tar.gz | ||
GULRAK=https://github.com/gulrak/filesystem/archive/v1.5.14/filesystem-1.5.14.tar.gz | ||
|
||
if [ -z "$ARCH" ]; then | ||
case "$( uname -m )" in | ||
i?86) ARCH=i586 ;; | ||
arm*) ARCH=arm ;; | ||
*) ARCH=$( uname -m ) ;; | ||
esac | ||
fi | ||
|
||
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what | ||
# the name of the created package would be, and then exit. This information | ||
# could be useful to other scripts. | ||
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then | ||
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" | ||
exit 0 | ||
fi | ||
|
||
TMP=${TMP:-/tmp/SBo} | ||
PKG=$TMP/package-$PRGNAM | ||
OUTPUT=${OUTPUT:-/tmp} | ||
|
||
if [ "$ARCH" = "i586" ]; then | ||
SLKCFLAGS="-O2 -march=i586 -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 | ||
|
||
rm -rf $PKG | ||
mkdir -p $TMP $PKG $OUTPUT | ||
cd $TMP | ||
rm -rf $PRGNAM-$VERSION | ||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz | ||
cd $PRGNAM-$VERSION | ||
|
||
wget $GTEST -O gtest.tar.gz | ||
#wget $GULRAK -O filesystem.tar.gz | ||
tar xvf gtest.tar.gz | ||
#tar xvf filesystem.tar.gz | ||
mv googletest-*/googlemock ext/gtest/ | ||
mv googletest-*/googletest ext/gtest/ | ||
#mv filesystem-*/* ext/gulrak-filesystem/ | ||
|
||
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 {} \; | ||
|
||
mkdir -p build | ||
cd build | ||
cmake \ | ||
-DCMAKE_C_FLAGS="$SLKCFLAGS" \ | ||
-DCMAKE_CXX_FLAGS="$SLKCFLAGS" \ | ||
-DCMAKE_BUILD_TYPE="Release" \ | ||
-DCMAKE_INSTALL_PREFIX=/usr .. | ||
make VERBOSE=1 | ||
make install DESTDIR=$PKG | ||
cd .. | ||
|
||
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 | ||
|
||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION | ||
cp -a README.md $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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
PRGNAM="input-leap" | ||
VERSION="3.0.2" | ||
HOMEPAGE="https://github.com/input-leap/input-leap" | ||
DOWNLOAD="https://codeload.github.com/input-leap/input-leap/tar.gz/refs/tags/v3.0.2" | ||
MD5SUM="d95235f1b79b03beb4f7e9727428892c" | ||
DOWNLOAD_x86_64="" | ||
MD5SUM_x86_64="" | ||
REQUIRES="avahi" | ||
MAINTAINER="Thiago Melo" | ||
EMAIL="[email protected]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
input-leap: Input Leap (Barrier Fork (Synergy fork lol)) | ||
input-leap: | ||
input-leap: Input Leap is software that mimics the functionality | ||
input-leap: of a KVM switch, which historically would allow you to | ||
input-leap: use a single keyboard and mouse to control multiple | ||
input-leap: computers by physically turning a dial on the box to | ||
input-leap: switch the machine you're controlling at any given moment. | ||
input-leap: Input Leap does this in software, allowing you to tell it | ||
input-leap: which machine to control by moving your mouse to the edge of the | ||
input-leap: screen, or by using a keypress to switch focus to a different system. | ||
input-leap: |