description="VNC server for real X displays"
url="https://github.com/LibVNC/x11vnc"

packager="tnut <tnut@nutyx.org"
contributors="Greg"

makedepends=(libjpeg-turbo xorg-libxdamage xorg-libxinerama
             xorg-libxrandr xorg-libxtst libvncserver)

name=x11vnc
version=0.9.16

PKGMK_KEEP_SOURCES="no"
source=(https://github.com/LibVNC/x11vnc/archive/${version}.tar.gz)

build() {

cd $name-$version
autoreconf -fi
./configure --prefix=/usr --mandir=/usr/share/man
make
make DESTDIR=$PKG install
install misc/{rx11vnc,Xdummy} $PKG/usr/bin

}
