# Maintainer: Sven-Hendrik Haase # Contributor: Jelle van der Waa # Contributor: Stéphane Gaudreault # Contributor: Dale Blount # Contributor: Michael Düll # I would just like to take a minute here and state that synergy is # some of the worst packaged software ever. They BUNDLE a fucking # zip for cryptopp and do not provide an option to use a system- # installed version of that library. They change around paths every # update and just generally don't seem to care much. pkgname=synergy pkgver=1.7.1 pkgrel=1 pkgdesc="Share a single mouse and keyboard between multiple computers" url="http://synergy-foss.org" arch=('i686' 'x86_64') depends=('gcc-libs' 'libxtst' 'libxinerama' 'crypto++' 'libxkbcommon-x11' 'avahi') makedepends=('libxt' 'cmake' 'qt5-base' 'python2') optdepends=('qt5-base: gui support') license=('GPL2') source=("synergy-${pkgver}.tar.gz::https://github.com/synergy/synergy/archive/v${pkgver}-stable.tar.gz" "synergys_at.socket" "synergys_at.service") sha1sums=('241056f377dbf6ec488be24adbe216a5ac0e7cd7' '7ec33221725fc496b807e0f435c5e87b590beb5d' '65ab58cc3546d6374a05a6a260f15045632e43ce') build() { cd "${srcdir}/synergy-${pkgver}-stable" python2 hm.py conf -g1 python2 hm.py build } package() { cd "${srcdir}/synergy-${pkgver}-stable" # install binary install -Dm755 bin/synergy "$pkgdir/usr/bin/synergy" install -Dm755 bin/synergyc "$pkgdir/usr/bin/synergyc" install -Dm755 bin/synergys "$pkgdir/usr/bin/synergys" install -Dm755 bin/syntool "$pkgdir/usr/bin/syntool" # install config install -Dm644 "doc/${pkgname}.conf.example" "${pkgdir}/etc/${pkgname}.conf.example" install -Dm644 "doc/${pkgname}.conf.example-advanced" "${pkgdir}/etc/${pkgname}.conf.example-advanced" install -Dm644 "doc/${pkgname}.conf.example-basic" "${pkgdir}/etc/${pkgname}.conf.example-basic" # install manfiles install -Dm644 "doc/${pkgname}c.man" "${pkgdir}/usr/share/man/man1/${pkgname}c.1" install -Dm644 "doc/${pkgname}s.man" "${pkgdir}/usr/share/man/man1/${pkgname}s.1" # install systemd service and socket install -Dm644 "$srcdir/synergys_at.service" "$pkgdir/usr/lib/systemd/system/synergys@.service" install -Dm644 "$srcdir/synergys_at.socket" "$pkgdir/usr/lib/systemd/system/synergys@.socket" # install desktop/icon stuff install -Dm644 "res/synergy.ico" "$pkgdir/usr/share/icons/synergy.ico" install -Dm644 "res/synergy.desktop" "$pkgdir/usr/share/applications/synergy.desktop" }