PKGBUILDs/community/synergy/PKGBUILD
2013-10-18 13:08:36 +00:00

65 lines
2.4 KiB
Bash

# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: Jelle van der Waa <jelle vdwaa nl>
# Contributor: Stéphane Gaudreault <stephane@archlinux.org>
# Contributor: Dale Blount <dale@archlinux.org>
# Contributor: Michael Düll <mail@akurei.me>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - patch to use the system crypto++ library
pkgname=synergy
pkgver=1.4.14
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++')
makedepends=('libxt' 'cmake' 'qt4' 'unzip')
optdepends=('qt4: gui support')
license=('GPL2')
source=("http://synergy.googlecode.com/files/$pkgname-$pkgver-Source.tar.gz"
"system-cryptopp.patch"
"synergys.socket"
"synergys.service")
sha512sums=('3e9ca96f36573e400c9694daba026322cbf36bbabdbf69687cbadb6010834d1afd81845533775564ba7aadbf3a8be8582d9e5b9d33abfa483a174b40e084add4'
'1a95d4b704ab4d54a7a9ec64eef3551752432c73540d94b69e2799fe615c5a4c61dc026bf40706030da0e649afa6b8ff3b8c26da245bb7e44846907f308566f1'
'f7d918faf4a25654786f270fc48b6e4089ecd1b2f504bb90de543b47a862733f7be067e06fd613d621bba48d20dc63214966e2cfbd2cb3fcbfe623d6d41f10ad'
'a10dfe5b24ac6f4a2ef3a3a9f8a6a3c432b91d5e59d1fae2258d37c5be00ac8f172656fa0d213012c7dc94ab8c04c3945ae33acfcd5db5fad8b37ccc9f5e980f')
build() {
cd "${srcdir}/${pkgname}-${pkgver}-Source"
patch -p1 -i ../system-cryptopp.patch
# Unzip the crypto library
unzip -d tools/cryptopp562 tools/cryptopp562.zip
cmake -D CMAKE_INSTALL_PREFIX=/usr .
make
cd src/gui
qmake-qt4
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}-Source/bin"
# install binary
install -Dm755 synergy "$pkgdir/usr/bin/synergy"
install -Dm755 synergyc "$pkgdir/usr/bin/synergyc"
install -Dm755 synergys "$pkgdir/usr/bin/synergys"
# install config
install -Dm644 "$srcdir/$pkgname-$pkgver-Source/doc/${pkgname}.conf.example" "${pkgdir}/etc/${pkgname}.conf.example"
# install systemd service and socket
install -d "$pkgdir/usr/lib/systemd/system"
install -Dm644 "$srcdir/synergys.service" "$pkgdir/usr/lib/systemd/system/"
install -Dm644 "$srcdir/synergys.socket" "$pkgdir/usr/lib/systemd/system/"
# install desktop/icon stuff
cd ../res
install -Dm644 "synergy.ico" "$pkgdir/usr/share/pixmaps/synergy.ico"
install -Dm644 "synergy.desktop" "$pkgdir/usr/share/applications/synergy.desktop"
}