59 lines
1.5 KiB
Bash
59 lines
1.5 KiB
Bash
# Template file for 'synergy'
|
|
pkgname=synergy
|
|
version=1.8.5
|
|
revision=1
|
|
wrksrc="${pkgname}-${version}-stable"
|
|
build_style=cmake
|
|
hostmakedepends="unzip pkg-config"
|
|
makedepends="avahi-compat-libs-devel libcurl-devel
|
|
libSM-devel libXext-devel libXrandr-devel libXtst-devel libXinerama-devel"
|
|
short_desc="Share a single mouse and keyboard between multiple computers"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
homepage="http://synergy-foss.org/"
|
|
license="GPL-2"
|
|
distfiles="https://github.com/symless/synergy/archive/v${version}-stable.tar.gz"
|
|
checksum=d913005e911bb6e5aa459f88fe91b40d59c37ea7207399814e4d450fd8634ec1
|
|
|
|
CXXFLAGS="-pthread"
|
|
|
|
post_extract() {
|
|
cd ext
|
|
unzip gmock-1.6.0.zip -d gmock-1.6.0
|
|
unzip gtest-1.6.0.zip -d gtest-1.6.0
|
|
}
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
makedepends+=" qt5-devel"
|
|
post_build() {
|
|
CXXFLAGS+=" $(pkg-config --cflags avahi-compat-libdns_sd)"
|
|
# qt5 gui
|
|
cd $wrksrc/src/gui
|
|
qmake QMAKE_CXXFLAGS="$CXXFLAGS" QMAKE_LFLAGS="$LDFLAGS"
|
|
make ${makejobs}
|
|
}
|
|
synergy-gui_package() {
|
|
depends="desktop-file-utils ${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vbin ${wrksrc}/bin/synergy
|
|
vmove usr/share/pixmaps
|
|
vmove usr/share/applications
|
|
}
|
|
}
|
|
fi
|
|
|
|
do_install() {
|
|
vbin bin/synergyc
|
|
vbin bin/synergys
|
|
vbin bin/syntool
|
|
|
|
vmkdir usr/share/examples/${pkgname}
|
|
install -m644 doc/synergy.conf.example* \
|
|
${DESTDIR}/usr/share/examples/${pkgname}
|
|
|
|
vinstall ${FILESDIR}/synergy.png 644 usr/share/pixmaps
|
|
vinstall ${FILESDIR}/synergy.desktop 644 usr/share/applications
|
|
|
|
vsv synergys
|
|
vsv synergyc
|
|
}
|
|
|