desktop/synergy/PKGBUILD
2014-06-28 14:09:12 +00:00

65 lines
2.1 KiB
Bash

# Maintainer: Neophytos Kolokotronis <tetris4 AT gmail DOT com>
# contributor: Ernesto Manriquez <alejandronova@gmail.com>
pkgname=synergy
pkgver=1.5.0
pkgrel=1
pkgdesc="Share your mouse and keyboard between several computers"
url="http://synergy-foss.org"
arch=('x86_64')
license=('GPL2')
depends=('gcc-libs' 'libxtst' 'libxinerama' )
makedepends=('libxt' 'cmake' 'qt' 'unzip')
optdepends=('qt: gui support')
provides=('synergy-plus')
categories=('utils')
backup=('etc/synergy.conf')
source=("http://synergy-project.org/files/packages/${pkgname}-${pkgver}-r2278-Source.tar.gz"
"synergys.socket"
"synergys.service")
sha256sums=('66bf6016a2e71b2b2b26fc445d28324d1d286b6fca7ae3e9d19fd300769af024'
'aeb357ba161131524aa70a5303a17f78831c9a1ab17dbc7c97e4781a5c4bac44'
'af2d1d7622ea189d773577a92d13164ca6a33f052f39de3fe466314265e59e0f')
build() {
cd "${srcdir}/${pkgname}-${pkgver}-Source"
# Unzip the crypto library
unzip -d ext/cryptopp562 ext/cryptopp562.zip
unzip -d ext/gmock-1.6.0 ext/gmock-1.6.0.zip
unzip -d ext/gtest-1.6.0 ext/gtest-1.6.0.zip
cmake -D CMAKE_INSTALL_PREFIX=/usr .
make
cd src/gui
qmake
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}-Source/bin"
#make DESTDIR="${pkgdir}" install # doesn't work atm
# install binary
install -Dm755 synergy "$pkgdir/usr/bin/synergy"
install -Dm755 synergyc "${pkgdir}/usr/bin/"
install -Dm755 synergys "${pkgdir}/usr/bin/"
# 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 config
install -m755 -d "${pkgdir}/etc"
install -m644 "${srcdir}/${pkgname}-${pkgver}-Source/doc/${pkgname}.conf.example" "${pkgdir}/etc/"
# install desktop/icon stuff
cd ../res
sed -i 's/icons/pixmaps/' synergy.desktop
install -Dm644 "synergy.ico" "$pkgdir/usr/share/pixmaps/synergy.ico"
install -Dm644 "synergy.desktop" "$pkgdir/usr/share/applications/synergy.desktop"
}