void-packages/srcpkgs/synergy/template

65 lines
1.8 KiB
Plaintext

# Template file for 'sed'
pkgname=synergy
version=1.4.15
revision=1
wrksrc=${pkgname}-${version}-Source
hostmakedepends="cmake unzip"
makedepends="qt-devel libSM-devel libXext-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.googlecode.com/files/$pkgname-$version-Source.tar.gz"
checksum=643745888ec6150e74cb6da9813f8c7572f2f87cf35f0bd4f64cc1e467ef3550
long_desc="
Synergy is Free and Open Source Software that lets you easily share your
mouse and keyboard between multiple computers, where each computer has its
own display. No special hardware is required, all you need is a local area
network. Synergy is supported on Windows, Mac OS X and Linux. Redirecting
the mouse and keyboard is as simple as moving the mouse off the edge of your
screen. Synergy is released under the GNU Public License (GPL)."
do_build() {
unset LDFLAGS
# Unzip the crypto library
unzip -d tools/cryptopp562 tools/cryptopp562.zip
cmake -DCMAKE_INSTALL_PREFIX=/usr .
make ${makejobs}
# qt4 gui
cd src/gui
qmake
make ${makejobs}
}
do_install() {
vinstall bin/synergy 755 usr/bin
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
}
synergy-gui_package() {
depends="desktop-file-utils synergy>=${version}"
replaces="synergy<1.4.12_2"
pkg_install() {
vmove usr/bin/synergy
vmove usr/share/pixmaps
vmove usr/share/applications
}
}
synergy_package() {
pkg_install() {
vmove all
}
}