summaryrefslogtreecommitdiff
path: root/extra/x11vnc/PKGBUILD
blob: 15d64aa923f88cb80a336a36fd091c23319e3553 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# $Id: PKGBUILD 91112 2010-09-22 19:40:25Z bisson $
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
# Contributor: damir <damir@archlinux.org>

pkgname=x11vnc
pkgver=0.9.12
pkgrel=1
pkgdesc='VNC server for real X displays'
arch=('i686' 'x86_64')
url='http://www.karlrunge.com/x11vnc/'
license=('GPL2')
depends=('openssl' 'libjpeg' 'zlib' 'libx11' 'libxtst' 'libxinerama' 'libxdamage' 'libxrandr' 'avahi')
optdepends=('tk: for GUI support')
backup=('etc/conf.d/x11vnc')
source=("http://downloads.sourceforge.net/libvncserver/${pkgname}-${pkgver}.tar.gz"
	'x11vnc.rc'
	'x11vnc.conf')
sha1sums=('cf4e24bee5962b52d8f2a5442a7c44943a9cc0bb'
          '3abb3fcadff32662ab847a9e772cd23cfdfe3d1a'
          '11011cce06511e9ba61672a1c80bb63a3a187539')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  ./configure --prefix=/usr --mandir=/usr/share/man
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install

  rm -fr "${pkgdir}"/usr/include/rfb # provided by libvncserver

  install -D -m 755 "${srcdir}/x11vnc.rc" "${pkgdir}/etc/rc.d/x11vnc"
  install -D -m 644 "${srcdir}/x11vnc.conf" "${pkgdir}/etc/conf.d/x11vnc"
}