1 # Maintainer : Daniel Bermond <dbermond@archlinux.org>
2 # Contributor: Gaetan Bisson
9 _commit='4ca006fed80410bd9b061a1519bd5d9366bb0bc8'
10 pkgdesc='VNC server for real X displays'
11 url='https://github.com/LibVNC/x11vnc'
14 depends=('libvncserver' 'openssl' 'libxcrypt' 'libxtst' 'libxext' 'libxinerama'
15 'libxrandr' 'libxfixes' 'libxdamage' 'libxcomposite' 'libx11' 'avahi'
16 'libxi' 'xorg-xdpyinfo')
17 optdepends=('tk: for GUI support'
18 'net-tools: for -auth guess'
19 'xf86-video-dummy: for Xdummy script')
21 source=("git+https://github.com/LibVNC/x11vnc.git#commit=${_commit}?signed"
22 '010-x11vnc-xfc-null-ptr.patch'::'https://github.com/LibVNC/x11vnc/commit/95a10ab64c2d.patch'
23 '020-x11vnc-gcc10-fix.patch'::'https://github.com/LibVNC/x11vnc/commit/a48b0b1cd887.patch'
24 '030-x11vnc-scan-limit-access-to-shared-memory'::'https://github.com/LibVNC/x11vnc/commit/69eeb9f7baa1.patch'
26 validpgpkeys=('25E71D2709955ECD4D041E03421BB3B45C6067F8') # Christian Beier
28 'd39a399d7db8e942e55639ed04a51b3c4f5d31d213d4639b1e26a44d92029403'
29 '2c71af4c586eabaa11744da65916f9223b928d1fba820f117243f6c8c585f16b'
30 'e9c121a0b16013059ce903ed3e7560fabc5015e3b058a3acec85d7ae7102fcf0'
31 'cfb19d44e09e960e2fdb958c9258bccf23c2677715314985f7e819f1dcedb6e4')
34 patch -d x11vnc -Np1 -i "${srcdir}/010-x11vnc-xfc-null-ptr.patch" # FS#65851
35 patch -d x11vnc -Np1 -i "${srcdir}/020-x11vnc-gcc10-fix.patch"
36 patch -d x11vnc -Np1 -i "${srcdir}/030-x11vnc-scan-limit-access-to-shared-memory" # FS#68930
42 ./configure --prefix='/usr' --mandir='/usr/share/man'
47 make -C x11vnc DESTDIR="$pkgdir" install
48 install x11vnc/misc/{rx11vnc,Xdummy} -t "${pkgdir}/usr/bin"
49 install -D -m644 x11vnc.service -t "${pkgdir}/usr/lib/systemd/system"