desktop/synergy/PKGBUILD

47 lines
1.4 KiB
Bash
Raw Normal View History

#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=synergy
2011-10-24 17:27:28 +08:00
pkgver=1.3.7
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' )
license=('GPL2')
makedepends=('libxt' 'cmake') # used by configure to test for libx11...
provides=('synergy-plus')
categories=('utils')
backup=('etc/synergy.conf')
source=("http://synergy.googlecode.com/files/$pkgname-$pkgver-Source.tar.gz" "${pkgname}s.rc" )
build() {
cd "${srcdir}/${pkgname}-${pkgver}-Source"
cmake -D CMAKE_INSTALL_PREFIX=/usr .
make
}
package() {
2011-10-24 17:27:28 +08:00
cd "${srcdir}/${pkgname}-${pkgver}-Source/bin"
# make DESTDIR="$pkgdir" install # doesn't work atm
# install binary
install -d "$pkgdir/usr/bin/"
install -Dm755 synergyc $pkgdir/usr/bin/
install -Dm755 synergys $pkgdir/usr/bin/
# install rc.d script and config
install -d "${pkgdir}/etc/rc.d"
2011-10-24 17:27:28 +08:00
install -Dm644 $srcdir/$pkgname-$pkgver-Source/doc/${pkgname}.conf.example "${pkgdir}/etc"
install -Dm755 $srcdir/${pkgname}s.rc "${pkgdir}/etc/rc.d/${pkgname}s"
}
2011-10-24 17:27:28 +08:00
md5sums=('27842f45f8ab6923eb702f9cc4858194'
'8f8c01add9bf6e3ae9f37a36ca6345b6')