# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
# Maintainer: damir <damir@archlinux.org>

pkgname=x11vnc
pkgver=0.9.12
pkgrel=2
pkgdesc="a VNC server for real X displays"
arch=("i686" "x86_64")
license=("GPL2")
url="http://www.karlrunge.com/x11vnc/"
source=("http://downloads.sourceforge.net/libvncserver/${pkgname}-${pkgver}.tar.gz")
depends=('openssl' 'libjpeg' 'zlib' 'libx11' 'libxtst' 'libxinerama'
         'libxdamage' 'libxrandr' 'avahi' 'recordproto')
install=x11vnc.install

build() {

  cd ${srcdir}/${pkgname}-${pkgver}
  ./configure --prefix=/usr --mandir=/usr/share/man
  make || return 1

}

package() {

  cd ${srcdir}/${pkgname}-${pkgver}
  make prefix=${pkgdir}/usr install || return 1

}
md5sums=('1498a68d02aa7b6c97bf746c073c8d00')