void-packages/srcpkgs/synergy/template

48 lines
1.3 KiB
Plaintext

# Template file for 'sed'
pkgname=synergy
version=1.6.2
revision=1
build_style=cmake
hostmakedepends="cmake unzip pkg-config"
makedepends="avahi-compat-libs-devel 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="https://github.com/synergy/synergy/archive/${version}.tar.gz"
checksum=36c0a2c9ea1c3a13a6134ce1e76ad8dd2f442100dd6075c53f31b399d2543ba3
CXXFLAGS="-pthread"
if [ -z "$CROSS_BUILD" ]; then
makedepends+=" qt5-devel"
post_build() {
CXXFLAGS+=" $(pkg-config --cflags avahi-compat-libdns_sd)"
# qt4 gui
cd $wrksrc/src/gui
qmake
make CXXFLAGS+="$CXXFLAGS -fPIC" ${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() {
vbin bin/synergyc
vbin bin/synergys
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
}