2013-05-31 22:39:17 +02:00
|
|
|
# Description: Share mouse and keyboard between multiple computers
|
|
|
|
# URL: http://synergy-foss.org/
|
2020-05-24 13:18:55 +00:00
|
|
|
# Maintainer: Thomas Penteker, tek at serverop dot de
|
2020-05-28 15:50:35 +00:00
|
|
|
# Depends on: avahi cmake qt5 xorg-libxcb xorg-libxdmcp xorg-libxrender xorg-libxtst
|
2013-05-31 22:39:17 +02:00
|
|
|
|
|
|
|
name=synergy
|
2020-11-08 13:40:46 +00:00
|
|
|
version=1.12.0
|
2013-05-31 22:39:17 +02:00
|
|
|
release=1
|
2020-11-08 13:40:46 +00:00
|
|
|
source=(https://github.com/symless/synergy-core/archive/v${version}-stable/$name-$version.tar.gz
|
|
|
|
https://github.com/google/googletest/archive/2fe3bd994b3189899d93f1d5a881e725e046fdc2/googletest-2fe3bd9.zip)
|
2013-05-31 22:39:17 +02:00
|
|
|
|
|
|
|
build() {
|
2020-11-08 13:40:46 +00:00
|
|
|
# -D BUILD_TESTS=OFF has no freaking effect :|
|
|
|
|
mv googletest-*/* $name-core-$version-stable/ext/googletest
|
|
|
|
cmake -S $name-core-$version-stable -B build -G Ninja \
|
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
2020-12-07 00:06:13 +00:00
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
2020-11-08 13:40:46 +00:00
|
|
|
-D BUILD_TESTS=OFF \
|
|
|
|
-D GIT_SUBMODULE=OFF \
|
|
|
|
-Wno-dev
|
2020-05-24 13:18:55 +00:00
|
|
|
cmake --build build
|
2020-11-08 13:40:46 +00:00
|
|
|
DESTDIR=$PKG cmake --install build
|
2013-05-31 22:39:17 +02:00
|
|
|
}
|