PKGBUILDs/community/tightvnc/PKGBUILD

55 lines
1.9 KiB
Bash
Raw Normal View History

2012-03-17 19:35:34 +00:00
# $Id: PKGBUILD 67960 2012-03-16 12:47:31Z arodseth $
# Maintainer: Alexander Rødseth <rodseth@gmail.com>
# Contributor: Paul Mattal <paul@archlinux.org>
2011-11-29 23:15:12 +00:00
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - patch to enable ARM building, contributed by vahokif
plugrel=1
pkgname=tightvnc
pkgver=1.3.10
2012-06-06 18:22:13 +00:00
pkgrel=8
2011-11-29 23:15:12 +00:00
pkgdesc="VNC Unix server && viewer"
arch=('i686' 'x86_64')
license=('GPL')
url="http://www.tightvnc.com"
2012-03-17 19:35:34 +00:00
depends=('libjpeg' 'zlib' 'libxaw' 'libxp' 'xorg-xauth' 'perl')
makedepends=('imake' 'setconf')
2012-02-25 18:35:00 +00:00
options=('!makeflags')
source=("http://downloads.sf.net/sourceforge/vnc-tight/$pkgname-${pkgver}_unixsrc.tar.bz2"
2012-03-17 19:35:34 +00:00
'http://people.csail.mit.edu/jaffer/Color/rgb.txt'
2012-02-25 18:35:00 +00:00
'tightvnc-1.3.10-arm.patch')
2012-03-17 19:35:34 +00:00
sha256sums=('f48c70fea08d03744ae18df6b1499976362f16934eda3275cead87baad585c0d'
'af6c056a95ae725f98534db22b9a4916d17f2356fdca84a4a038211a82fa8a73'
'8ee519594642ab9309f9f7a91bcd6938f2117a23452d19edf78259b46381bd40')
2011-11-29 23:15:12 +00:00
build() {
2012-02-25 18:35:00 +00:00
cd $srcdir/vnc_unixsrc
2012-03-17 19:35:34 +00:00
patch -Np1 -i "${srcdir}"/tightvnc-1.3.10-arm.patch
2011-11-29 23:15:12 +00:00
2012-03-17 19:35:34 +00:00
setconf vncserver '$vncClasses' \"/usr/share/tightvnc\"\;
setconf vncserver '$fontPath' \"/usr/share/fonts/misc/,/usr/share/fonts/75dpi/,/usr/share/fonts/100dpi/,/usr/share/fonts/Type1/\"\;
2012-02-25 18:35:00 +00:00
xmkmf
make World
cd Xvnc
./configure
2012-06-06 18:22:13 +00:00
setconf programs/Xserver/dix/Makefile DEFAULTRGBDATABASE '/usr/share/tightvnc/rgb'
2012-03-17 19:35:34 +00:00
setconf programs/Xserver/os/Makefile PROTO_DEFINES "-D_XOPEN_SOURCE=500L"
setconf lib/font/fc/Makefile PROTO_DEFINES "-D_XOPEN_SOURCE=500L"
2012-02-25 18:35:00 +00:00
make
}
package() {
2012-03-17 19:35:34 +00:00
cd "$srcdir/vnc_unixsrc"
2012-02-25 18:35:00 +00:00
2012-03-17 19:35:34 +00:00
mkdir -p "$pkgdir/usr/bin" "$pkgdir/usr/share/man/man1"
./vncinstall "$pkgdir/usr/bin" "$pkgdir/usr/share/man"
mkdir -p "$pkgdir/usr/share/$pkgname"
install -Dm644 "$srcdir/vnc_unixsrc/classes/"* \
"$pkgdir/usr/share/$pkgname"
install -Dm644 "$srcdir/rgb.txt" "$pkgdir/usr/share/$pkgname/rgb.txt"
2011-11-29 23:15:12 +00:00
}
2012-03-17 19:35:34 +00:00
# vim:set ts=2 sw=2 et: