updated on Wed Jan 25 00:20:47 UTC 2012
[aur-mirror.git] / x2goagent / PKGBUILD
blob0b2bfe36c4ffe739cf6dc77c2a582960c0b202ef
1 # Contributor: Gerhard Brauer <gerbra@archlinux.de>
2 # Contributor: Richard Murri <admin@richardmurri.com>
3 # Contributor: Marc Cousin <cousinmarc@gmail.com>
4 pkgname=x2goagent
5 pkgver=3.4.0_5_1
6 _dashes=${pkgver//_/-}
7 pkgrel=5
8 pkgdesc="X proxy server for x2go using NX libs"
9 arch=(i686 x86_64)
10 license=('GPL')
11 url="http://www.x2go.org/"
12 depends=(nxcomp nxcompshad nxcompext nxproxy)
13 groups=('x2go' 'alts')
14 source=(http://x2go.obviously-nice.de/deb/pool-lenny/${pkgname}/${pkgname}_${_dashes%-*}.orig.tar.gz
15         http://x2go.obviously-nice.de/deb/pool-lenny/${pkgname}/${pkgname}_${_dashes}.diff.gz
16         configure
17         x2go.xpm)
18 md5sums=('b550163ea5b2fd66486c0c7ef4814263'
19          'acdaf3d3466877d084cb4b566c79988d'
20          '4394a29762289ae3d4d8b80bf36f1810'
21          'd05088dbd75790aa1d2cfaf797ce09f4')
23 build() {
24   cd "$srcdir/$pkgname-${_dashes%-*}"
25   patch -Np1 <../${pkgname}_${_dashes}.diff
27   cp ../x2go.xpm programs/Xserver/hw/nxagent/
29   find ./ -type f | xargs sed -i 's/_XLIB_H_/_X11_XLIB_H_/g'
31   # fake a recompile of nxcomp nxcompext and nxcompshad
32   install -D -m 555 $srcdir/configure $srcdir/nxcomp/configure
33   install -D -m 555 $srcdir/configure $srcdir/nxcompext/configure
34   install -D -m 555 $srcdir/configure $srcdir/nxcompshad/configure
35   cp -a /usr/include/nxcomp/* $srcdir/nxcomp
36   cp -a /usr/lib/libXcomp.so* $srcdir/nxcomp
37   cp -a /usr/include/nxcompext/* $srcdir/nxcompext
38   cp -a /usr/lib/libXcompext.so* $srcdir/nxcompext
39   cp -a /usr/include/nxcompshad/* $srcdir/nxcompshad
40   cp -a /usr/lib/libXcompshad.so* $srcdir/nxcompshad
42   make World
44   install -d ${startdir}/pkg/usr/lib/x2go
45   cp -a lib/X11/lib* ${startdir}/pkg/usr/lib/x2go
46   cp -a lib/Xext/lib* ${startdir}/pkg/usr/lib/x2go
47   cp -a lib/Xrender/lib* ${startdir}/pkg/usr/lib/x2go
48   install -Dm755 programs/Xserver/nxagent ${startdir}/pkg/usr/bin/x2goagent