updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / synergy-beta / PKGBUILD
blob632c4a3aa5c47ea173ed6ac2b59287abdc536450
1 # Maintainer: George Nassar <george@providentdata.com>
2 # Contributor: Jelle van der Waa <jelle vdwaa nl>
3 # Contributor: Stéphane Gaudreault <stephane@archlinux.org>
4 # Contributor: Dale Blount <dale@archlinux.org>
6 pkgname=synergy-beta
7 pkgver=1.4.5
8 pkgrel=1
9 pkgdesc="Share a single mouse and keyboard between multiple computers"
10 url="http://synergy-foss.org"
11 arch=('i686' 'x86_64')
12 depends=('gcc-libs' 'libxtst' 'libxinerama' 'bash')
13 conflicts=('synergy')
14 provides=('synergy')
15 license=('GPL2')
16 makedepends=('libxt' 'cmake' 'python2')       # used by configure to test for libx11...
17 backup=('etc/synergy.conf')
18 source=("http://synergy.googlecode.com/files/synergy-$pkgver-Source.tar.gz" http://synergy-foss.org/tracker/attachments/download/2936/platform-libs.patch synergys.rc)
19 md5sums=('668e042b4d8a4165cb3b68adef0b8dc6'
20          '45566c8b91a4f2f1e1087ae05f004413'
21          '8f8c01add9bf6e3ae9f37a36ca6345b6')
23 build() {
24   cd "${srcdir}/synergy-${pkgver}-Source"
25   patch -p0 < ../platform-libs.patch
26   sed -i -e 's/^python /python2 /g' ./hm.sh
27   ./hm.sh conf -g1
28   ./hm.sh build
31 package() {
32   cd "${srcdir}/synergy-${pkgver}-Source"
34   # install binary
35   install -d "$pkgdir/usr/bin/"
36   install -Dm755 bin/synergyc "$pkgdir/usr/bin/"
37   install -Dm755 bin/synergys "$pkgdir/usr/bin/"
39   # install rc.d script  and config
40   install -d "${pkgdir}/etc/rc.d"
41   install -Dm644 doc/synergy.conf.example-basic "${pkgdir}/etc/synergy.conf" # true
42   install -Dm755 "$srcdir/synergys.rc" "${pkgdir}/etc/rc.d/synergys" # true