Re: How to compile Synergy?
Reply #1 –
I ended up finding the program "Barrier" which is a super cool free fork of synergy! I noticed something though, if you build it with
-DCMAKE_BUILD_TYPE=Release in cmake, it won't save the configuration right, I think that is how Synergy made it work, so that cmake build flag MUST be left out, this is my PKGBUILD I crafted for barrier - I took notes from the barrier AUR pkgbuild.
pkgname=barrier-fresh
pkgver=0
pkgrel=1
pkgdesc="Open-source KVM software based on Synergy"
arch=('x86_64')
url="https://github.com/debauchee/barrier"
license=("custom:GPL2WithOpenSSLException")
depends=('curl' 'libx11' 'libxrandr' 'libxext' 'libxinerama' 'xorgproto' 'libxtst' 'libxi' 'avahi' 'libsm' 'libice'
'openssl' 'qt5-base' 'hicolor-icon-theme')
makedepends=('cmake')
source=('barrier::git+https://github.com/debauchee/barrier')
sha256sums=('SKIP')
build() {
mkdir barrier/build
cd barrier/build
cmake -DBARRIER_VERSION_MAJOR=1 -DBARRIER_VERSION_MINOR=9 -DBARRIER_VERSION_PATCH=0 -DBARRIER_VERSION_STAGE=snapshot -DCMAKE_INSTALL_PREFIX=/usr ..
make -j7
}
package() {
# Install binaries:
cd barrier/build
DESTDIR="${pkgdir?}" make install
# Install the license:
cd ..
install -m 644 -D LICENSE "${pkgdir?}/usr/share/licenses/barrier/LICENSE"
# Install the manpages:
mkdir -p "${pkgdir?}/usr/share/man/man1"
install -m 644 doc/*.1 "${pkgdir?}/usr/share/man/man1"
# Install the examples:
mkdir -p "${pkgdir?}/usr/share/doc/barrier"
install -m 644 doc/barrier.conf* "${pkgdir?}/usr/share/doc/barrier"
}
Barrier is made to work with versions that do not match it unlike synergy, at least from what I understand, so if a different PC you have has a different version of Barrier it should still work - - if different versions aren't working then report it to the github page: https://github.com/debauchee/barrier