updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / vncviewer-enterprise / PKGBUILD
blobe34d0fa815975de8a4cb153b3ab941b3e2600856
1 # Contributor: Tom Wizetek <tom@wizetek.com>
2 pkgname=vncviewer-enterprise
3 pkgver=4.5.4
4 pkgrel=2
5 pkgdesc="RealVNC Enterprise Edition viewer"
6 url="http://www.realvnc.com/"
7 license=('custom')
8 arch=('i686' 'x86_64')
9 depends=('libxext')
10 makedepends=('gzip')
12 case ${CARCH} in
13   i686)
14     _pkgarch=x86
15     md5sums=('fda1dda25dd5c2c3b8394905c6313504'
16              'bae47b0403060b8655956d4cfdfb7c3c')
17   ;;
18   x86_64)
19     _pkgarch=x64
20     md5sums=('b9017ec209f30175cc2e52b7701498c3'
21              'bae47b0403060b8655956d4cfdfb7c3c')
22   ;;
23   *)
24     error "Invalid \$CARCH=${CARCH}"
25     return 1
26   ;;
27 esac
29 _pkgsrc=vnc-E4_5_4-${_pkgarch}_linux_viewer.gz
30 _pkgbin=vnc-E4_5_4_r41964-${_pkgarch}_linux_viewer
31 source=("${_pkgsrc}::http://www.realvnc.com/cgi-bin/download.cgi?product=enterprise4/vncviewer/x/${_pkgarch}_linux&filetype=gz&filever=${pkgver}&haveDetails=1&acceptLicense=1"
32         realvnc_48x48.png)
34 package() {
35   gunzip -c ${_pkgsrc} > ${_pkgbin}
36   install -D -m 755 ${srcdir}/${_pkgbin} ${pkgdir}/usr/bin/${_pkgbin}
37   install -D -m 644 ${srcdir}/realvnc_48x48.png ${pkgdir}/usr/share/pixmaps/realvnc_48x48.png
39   cat > ${pkgname}.desktop << EoF
40 [Desktop Entry]
41 Type=Application
42 Categories=Application;Network;
43 Terminal=false
44 Exec=/usr/bin/${_pkgbin}
45 Icon=/usr/share/pixmaps/realvnc_48x48.png
46 Name=VNC Viewer Enterprise Edition for X
47 GenericName=Remote desktop client
48 Comment=Connect to VNC servers
49 EoF
51   install -D -m 644 ${srcdir}/${pkgname}.desktop ${pkgdir}/usr/share/applications/${pkgname}.desktop