updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / nxproxy-x2go-git / PKGBUILD
blobf2ec70b51781b38716d75edd0a33f57ce73a1603
1 # Maintainer: Markus Opitz <mastero23 at gmail dot com>
3 pkgname=nxproxy-x2go-git
4 pkgver=20111230
5 pkgrel=1
6 pkgdesc="NX compression proxy"
7 arch=('i686' 'x86_64')
8 url="http://www.x2go.org/"
9 license=('GPL2')
10 depends=('nx-x11-git')
11 conflicts=('nxproxy')
13 _pkgname="${pkgname%-x2go-git}"
14 _gitname="nx-libs"
15 _gitroot="git://code.x2go.org/$_gitname.git"
17 build() {
18   cd "$srcdir"
19   msg "Connecting to GIT server...."
21   if [ -d $_gitname ] ; then
22     cd $_gitname && git pull origin
23     msg "The local files are updated."
24   else
25     git clone $_gitroot $_gitname
26   fi
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"
39 package() {
40   cd "$srcdir/$_gitname-build/$_pkgname"
42   install -m 755 -d "$pkgdir/usr/bin/"
43   install -m 755 nxproxy "$pkgdir/usr/bin/"