void-packages/srcpkgs/synergy/template

48 lines
1.3 KiB
Text
Raw Normal View History

# Template file for 'sed'
pkgname=synergy
2014-08-28 07:51:51 +00:00
version=1.5.1
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-08-28 07:51:51 +00:00
distfiles="http://synergy-project.org/files/packages/${pkgname}-${version}-r2398-Source.tar.gz"
checksum=c70cc5bbec47ea22bdc34107a1788cc37143c0fd8d8c4affba4f0257c26408a7
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}"
pkg_install() {
2014-08-28 07:51:51 +00:00
vbin ${wrksrc}/bin/synergy
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
}