summaryrefslogtreecommitdiff
path: root/extra/tightvnc/PKGBUILD
blob: a82082916e19972e41e7d119bef49ab90ce52342 (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
37
38
39
40
41
42
# $Id: PKGBUILD 150962 2012-02-24 10:13:24Z pierre $
# Maintainer: Paul Mattal <paul@archlinux.org>
pkgname=tightvnc
pkgver=1.3.10
pkgrel=6
pkgdesc="VNC Unix server && viewer"
arch=('i686' 'x86_64' 'mips64el')
license=('GPL')
url="http://www.tightvnc.com"
depends=('libjpeg' 'zlib' 'libxaw' 'libxp' 'xorg-xauth')
makedepends=('imake')
conflicts=('vnc')
options=('!makeflags')
source=("http://downloads.sf.net/sourceforge/vnc-tight/$pkgname-${pkgver}_unixsrc.tar.bz2"
        'tightvnc-fontpath-xcolors.patch')
md5sums=('397b35faad32d5246b6d44b142f8304f'
         '21aa7f3376ec3c608ff22d199a19c601')

build() {
  cd $srcdir/vnc_unixsrc
  patch -Np1 -i ../tightvnc-fontpath-xcolors.patch
  sed -i 's|/usr/local/|/usr/share/|' vncserver

  xmkmf
  make World
  cd Xvnc
  ./configure
  sed 's|PROTO_DEFINES =|PROTO_DEFINES = -D_XOPEN_SOURCE=500L|' \
    -i programs/Xserver/os/Makefile lib/font/fc/Makefile
  make
}

package() {
  cd $srcdir/vnc_unixsrc
  mkdir -p $pkgdir/usr/bin $pkgdir/usr/share/man/man1
  ./vncinstall $pkgdir/usr/bin $pkgdir/usr/share/man

  # install java classes
  mkdir -p $pkgdir/usr/share/vnc/classes
  install -Dm644 $srcdir/vnc_unixsrc/classes/* \
    $pkgdir/usr/share/vnc/classes
}