void-packages/srcpkgs/synergy/template

49 lines
1.4 KiB
Plaintext

# Template file for 'sed'
pkgname=synergy
version=1.5.0
revision=1
wrksrc="${pkgname}-${version}-Source"
build_style=cmake
hostmakedepends="cmake unzip"
makedepends="libcurl-devel crypto++-devel libSM-devel libXext-devel libXrandr-devel libXtst-devel>=1.2.1_2 libXinerama-devel"
short_desc="Share a single mouse and keyboard between multiple computers"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://synergy-foss.org/"
license="GPL-2"
distfiles="http://synergy-project.org/files/packages/${pkgname}-${version}-r2278-Source.tar.gz"
checksum=66bf6016a2e71b2b2b26fc445d28324d1d286b6fca7ae3e9d19fd300769af024
CXXFLAGS="-pthread"
if [ -z "$CROSS_BUILD" ]; then
makedepends+=" qt-devel"
post_build() {
# qt4 gui
cd src/gui
qmake
make CXXFLAGS="$CXXFLAGS" LDFLAGS="$LDFLAGS" ${makejobs}
}
synergy-gui_package() {
depends="desktop-file-utils ${sourcepkg}>=${version}_${revision}"
replaces="synergy<1.4.12_2"
pkg_install() {
vinstall ${wrksrc}/bin/synergy 755 usr/bin
vmove usr/share/pixmaps
vmove usr/share/applications
}
}
fi
do_install() {
vinstall bin/synergyc 755 usr/bin
vinstall bin/synergys 755 usr/bin
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
}