FS#33895 - [synergy] doesn't build with native GUI

Attached to Project: Community Packages
Opened by Eric Renfro (psi-jack) - Sunday, 17 February 2013, 00:36 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Thursday, 28 February 2013, 09:31 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description: Synergy 1.4.10 has a GUI it comes with, but this package isn't building it.


Additional info:
* package version(s): 1.4.10

Steps to reproduce:
Built package does not include /usr/bin/synergy, nor does the PKGBUILD define to build it either.

Steps to fix:
PKGBUILD needs the following changes:

makedepends=('libxt' 'cmake' 'qt')

build() needs a few lines added after the "cmake ...; make" commands:
cd src/gui
qmake
make

That builds the GUI portion itself, depending on Qt libraries.

package() needs the following addition for installing the GUI:
install -Dm744 synergy $pkgdir/usr/bin/

right underneath synergyc and synergys binaries, since the GUI step builds the final binary into the same directory.


The only portion I'm not familiar with that should also be added is:
Alerting the user during installation for GUI, they need to install Qt as an optional dependency. Also, a menu item file for it to show up properly in various Desktop Environments, to provide the executable, and icon, as appropriate.
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Thursday, 28 February 2013, 09:31 GMT
Reason for closing:  Implemented
Comment by Eric Renfro (psi-jack) - Sunday, 17 February 2013, 00:49 GMT
Added synergy.desktop

During the package(), add:
# install desktop entries in /usr/share/applications/
install -d "${pkgdir}/usr/share/applications"
install -Dm644 ${srcdir}/synergy.desktop "${pkgdir}/usr/share/applications"

Secondary, add:
optdepends=('qt: GUI support')

Comment by Eric Renfro (psi-jack) - Sunday, 17 February 2013, 00:54 GMT
Forgot the icon file, in package() add:

# install icons in /usr/share/pixmaps/
install -d "${pkgdir}/usr/share/pixmaps"
# originally from res/synergy.ico converted using Gwenview
install -Dm644 ${srcdir}/synergy.png "${pkgdir}/usr/share/pixmaps"

Loading...