Add manual build and install of libvncserver

Need the latest libvncserver to build obmc-ikvm application. In order to
build the Tight protocol functions, we need also need libjpeg for
libvncserver.

Change-Id: I7bc32957fc0cd2b92e5d0f038de330e3ccb1e090
Signed-off-by: Eddie James <eajames@us.ibm.com>
diff --git a/build-unit-test-docker.sh b/build-unit-test-docker.sh
index 9123b88..56ebae9 100755
--- a/build-unit-test-docker.sh
+++ b/build-unit-test-docker.sh
@@ -100,7 +100,7 @@
     libssl-dev \
     libevdev-dev \
     libevdev2-dbgsym \
-    libvncserver-dev \
+    libjpeg-dev \
     sudo \
     curl \
     git \
@@ -202,6 +202,17 @@
 make -j$(nproc) && \
 make install
 
+# Fetch, build, and install latest libvncserver because obmc-ikvm requires a recent commit
+# (libvncserver commit dd873fce451e4b7d7cc69056a62e107aae7c8e7a). This won't be included in any
+# respository packages for some time.
+RUN git clone https://github.com/LibVNC/libvncserver && \
+cd libvncserver && \
+mkdir build && \
+cd build && \
+cmake -DWITH_PNG=OFF .. && \
+make -j$(nproc) && \
+make install
+
 RUN /bin/bash
 EOF
 )