void-packages/srcpkgs/synergy/template

49 lines
1.4 KiB
Text
Raw Normal View History

# Template file for 'sed'
pkgname=synergy
2014-06-04 07:04:27 +00:00
version=1.5.0
2014-04-17 07:22:30 +00:00
revision=1
wrksrc="${pkgname}-${version}-Source"
build_style=cmake
2013-06-06 05:50:37 +00:00
hostmakedepends="cmake unzip"
2014-06-04 07:04:27 +00:00
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"
2014-06-04 07:04:27 +00:00
distfiles="http://synergy-project.org/files/packages/${pkgname}-${version}-r2278-Source.tar.gz"
checksum=66bf6016a2e71b2b2b26fc445d28324d1d286b6fca7ae3e9d19fd300769af024
2014-04-17 07:22:30 +00:00
CXXFLAGS="-pthread"
if [ -z "$CROSS_BUILD" ]; then
makedepends+=" qt-devel"
post_build() {
# qt4 gui
cd src/gui
qmake
2014-06-04 07:04:27 +00:00
make CXXFLAGS="$CXXFLAGS" LDFLAGS="$LDFLAGS" ${makejobs}
2014-04-17 07:22:30 +00:00
}
synergy-gui_package() {
depends="desktop-file-utils ${sourcepkg}>=${version}_${revision}"
replaces="synergy<1.4.12_2"
pkg_install() {
2014-04-17 07:26:45 +00:00
vinstall ${wrksrc}/bin/synergy 755 usr/bin
2014-04-17 07:22:30 +00:00
vmove usr/share/pixmaps
vmove usr/share/applications
}
}
fi
do_install() {
2012-08-10 05:22:05 +00:00
vinstall bin/synergyc 755 usr/bin
vinstall bin/synergys 755 usr/bin
2013-06-06 05:50:37 +00:00
2012-08-10 05:22:05 +00:00
vmkdir usr/share/examples/${pkgname}
install -m644 doc/synergy.conf.example* \
${DESTDIR}/usr/share/examples/${pkgname}
2013-06-06 05:50:37 +00:00
vinstall ${FILESDIR}/synergy.png 644 usr/share/pixmaps
vinstall ${FILESDIR}/synergy.desktop 644 usr/share/applications
}