void-packages/srcpkgs/synergy/template

48 lines
1.3 KiB
Text
Raw Normal View History

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