aboutsummaryrefslogtreecommitdiff
path: root/network/synergy/synergy.SlackBuild
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-03-09 00:14:55 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-03-09 00:14:55 +0700
commitb60477de6493f3aed1716d8c43f6a7424c103cdb (patch)
treeeda95fe229de1e2451e2ff678eca5263c5e9eb0c /network/synergy/synergy.SlackBuild
parentcb875d99055f07c90d32c9e00a03c2c49017da20 (diff)
network/synergy: Updated for version 1.14.3.5.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/synergy/synergy.SlackBuild')
-rw-r--r--network/synergy/synergy.SlackBuild50
1 files changed, 31 insertions, 19 deletions
diff --git a/network/synergy/synergy.SlackBuild b/network/synergy/synergy.SlackBuild
index dc58842376..6874d88542 100644
--- a/network/synergy/synergy.SlackBuild
+++ b/network/synergy/synergy.SlackBuild
@@ -29,7 +29,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=synergy
SRCNAM=synergy-core
-VERSION=${VERSION:-1.8.8}
+VERSION=${VERSION:-1.14.3.5}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -76,9 +76,6 @@ cd $TMP
rm -rf $SRCNAM-$VERSION-stable
tar xvf $CWD/$SRCNAM-$VERSION-stable.tar.gz
cd $SRCNAM-$VERSION-stable
-patch -p0 < $CWD/010_include_dns_sd.diff
-patch -p0 < $CWD/020_toolchain_commands.diff
-patch -p0 < $CWD/030_openssl.diff
chown -R root:root .
find -L . \
@@ -87,29 +84,44 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-
-sh hm.sh configure --generator=1 --release
-CXXFLAGS="$SLKCFLAGS" sh hm.sh build
+#Remove the submodule pugixml
+sed -i.remove-sub-pugixml -e '/pugixml/ s/^/#/' src/lib/synergy/CMakeLists.txt
+sed -i.add-lib-pugixml -e '/target_link_libraries(synlib arch/ s/target_link_libraries(synlib arch \(.*\))/target_link_libraries(synlib arch \1 pugixml)/' src/lib/synergy/CMakeLists.txt
+
+mkdir -p build
+cd build
+ cmake \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DLIB_SUFFIX=${LIBDIRSUFFIX} \
+ -DMAN_INSTALL_DIR=/usr/man \
+ -DBUILD_TESTS=false \
+ -DSYNERGY_VERSION_STAGE:STRING=stable \
+ -DCMAKE_BUILD_TYPE=Release ..
+ make
+ make install/strip DESTDIR=$PKG
+cd ..
# installation not implemented
mkdir -p $PKG/usr/bin $PKG/usr/doc/$PRGNAM-$VERSION $PKG/usr/man/man1 \
$PKG/usr/share/icons/hicolor/256x256 $PKG/usr/share/applications
-for file in synergy synergyc synergyd synergys syntool usynergy ; do
- install -s -m 0755 $TMP/$SRCNAM-$VERSION-stable/bin/$file $PKG/usr/bin
-done
+#for file in synergy synergyc synergyd synergys syntool usynergy ; do
+# install -s -m 0755 $TMP/$SRCNAM-$VERSION-stable/bin/$file $PKG/usr/bin
+#done
-for file in synergy.conf.example synergy.conf.example-advanced synergy.conf.example-basic ; do
- install -m 0644 $TMP/$SRCNAM-$VERSION-stable/doc/$file $PKG/usr/doc/$PRGNAM-$VERSION
-done
+#for file in synergy.conf.example synergy.conf.example-advanced synergy.conf.example-basic ; do
+# install -m 0644 $TMP/$SRCNAM-$VERSION-stable/doc/$file $PKG/usr/doc/$PRGNAM-$VERSION
+#done
-for file in COMPILE ChangeLog INSTALL LICENSE README ; do
- install -m 0644 $TMP/$SRCNAM-$VERSION-stable/$file $PKG/usr/doc/$PRGNAM-$VERSION
-done
+#for file in COMPILE ChangeLog INSTALL LICENSE README ; do
+# install -m 0644 $TMP/$SRCNAM-$VERSION-stable/$file $PKG/usr/doc/$PRGNAM-$VERSION
+#done
-for file in synergyc.man synergys.man ; do
- install -m 0644 $TMP/$SRCNAM-$VERSION-stable/doc/$file $PKG/usr/man/man1
-done
+#for file in synergyc.man synergys.man ; do
+# install -m 0644 $TMP/$SRCNAM-$VERSION-stable/doc/$file $PKG/usr/man/man1
+#done
find $PKG/usr/man/man1 -type f -name "*.man" -exec rename '.man' '.1' {} \;
find $PKG/usr/man/man1 -type f -name "*.?" -exec gzip -9f {} \;