1 # Maintainer: Markus Opitz <mastero23 at gmail dot com>
3 pkgname=nxproxy-x2go-git
6 pkgdesc="NX compression proxy"
8 url="http://www.x2go.org/"
10 depends=('nx-x11-git')
13 _pkgname="${pkgname%-x2go-git}"
15 _gitroot="git://code.x2go.org/$_gitname.git"
19 msg "Connecting to GIT server...."
21 if [ -d $_gitname ] ; then
22 cd $_gitname && git pull origin
23 msg "The local files are updated."
25 git clone $_gitroot $_gitname
28 msg "GIT checkout done or server timeout"
29 msg "Starting make..."
31 rm -rf "$srcdir/$_gitname-build"
32 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
33 cd "$srcdir/$_gitname-build/$_pkgname"
35 ./configure --prefix=/usr
36 make LDFLAGS="-L/usr/lib/nx"
40 cd "$srcdir/$_gitname-build/$_pkgname"
42 install -m 755 -d "$pkgdir/usr/bin/"
43 install -m 755 nxproxy "$pkgdir/usr/bin/"