summaryrefslogtreecommitdiff
path: root/synergy/Pkgfile
blob: d70784bf22bd5d5821ca964f5045c0b7a92bca5e (plain)
    1 # Description: Share mouse and keyboard between multiple computers
    2 # URL:         http://synergy-foss.org/
    3 # Maintainer:  Thomas Penteker, tek at serverop dot de 
    4 # Depends on:  xorg-libxrender xorg-libxdmcp xorg-libxcb qt5 avahi
    5 
    6 name=synergy
    7 version=1.9.1
    8 release=1
    9 source=(https://github.com/symless/synergy-core/archive/v${version}-stable.tar.gz)
   10 
   11 build() {
   12   cd $name-core-$version-stable
   13 
   14   # work around a failing cmake file by defining re/version
   15   cmake -DCMAKE_INSTALL_PREFIX=/usr \
   16         -DSYNERGY_REVISION=0badc0de \
   17         -DSYNERGY_VERSION=$version .
   18 
   19   make
   20 
   21   cd src/gui
   22   qmake-qt5
   23 
   24   sed -i 's|-I../lib/shared|-I../lib|g' Makefile
   25   sed -i 's|version = version.*|version=version + '-0';|1' src/AboutDialog.cpp
   26   make
   27 
   28   cd ../..
   29   install -D -m 755 doc/synergyc.man $PKG/usr/share/man1/synergyc.man
   30   install -D -m 755 doc/synergys.man $PKG/usr/share/man1/synergys.man
   31   install -d -m 755 $PKG/usr/bin
   32   install -D -m 755 bin/*syn* $PKG/usr/bin
   33   rm -rf $PKG/usr/bin/*tests
   34 }

Generated by cgit