summaryrefslogtreecommitdiffstats
path: root/extra/tightvnc-viewer/Pkgfile
blob: 256f2b9e87b92ad233194a38300006844100c23a (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
# Description: A free remote control software package derived from VNC (client)
# URL: http://www.tightvnc.com/
# Maintainer: Matt Housh, jaeger at morpheus dot net
# Packager: thierryn1 at hispeed dot ch
# Depends on: xorg, xorg-imake, xorg-gccmakedep, libjpeg

name=tightvnc-viewer
version=1.3.9
release=1
source=(http://dl.sourceforge.net/sourceforge/vnc-tight/tightvnc-${version}_unixsrc.tar.bz2)

build() {
	cd vnc_unixsrc
	xmkmf -a
	make Makefiles
	find . -name "Makefile" -exec \
		sed -i -e 's/-lXp$//g' '{}' \;
	make depend
	make all
	mkdir -p $PKG/usr/{bin,share/man/man1}
	./vncinstall $PKG/usr/bin $PKG/usr/share/man
	rm -f $PKG/usr/bin/vncserver $PKG/usr/share/man/man1/{Xvnc,vncserver}*
	chown -R 0:0 $PKG
}