48 lines
1.3 KiB
Plaintext
48 lines
1.3 KiB
Plaintext
# Template file for 'sed'
|
|
pkgname=synergy
|
|
version=1.5.1
|
|
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}-r2398-Source.tar.gz"
|
|
checksum=c70cc5bbec47ea22bdc34107a1788cc37143c0fd8d8c4affba4f0257c26408a7
|
|
|
|
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}"
|
|
pkg_install() {
|
|
vbin ${wrksrc}/bin/synergy
|
|
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
|
|
}
|
|
|