updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / xrdp-git / PKGBUILD
blob53140a59c0917febbd74c3ebd2f0a64614c6f253
1 # Contributor: Tau Tsao <realturner at gmail.com>
2 pkgname=xrdp-git
3 pkgver=20110219
4 pkgrel=1
5 pkgdesc="An open source remote desktop protocol(rdp) server - GIT version"
6 url="http://sourceforge.net/projects/xrdp/develop"
7 arch=('i686' 'x86_64')
8 license=('GPL')
9 groups=()
10 depends=('tightvnc')
11 makedepends=()
12 provides=()
13 conflicts=()
14 replaces=()
15 backup=()
16 options=()
17 source=()
18 noextract=()
19 md5sums=()
21 _gitroot="git://xrdp.git.sourceforge.net/gitroot/xrdp/xrdp"
22 _gitname=xrdp
24 build() {
25   cd "$srcdir"
26   msg "Connecting to GIT server...."
28   if [ -d $srcdir/$_gitname ] ; then
29     cd $srcdir/$_gitname && git pull origin
30     msg "The local files are updated."
31   else
32     git clone $_gitroot $_gitname
33   fi
35   msg "GIT checkout done or server timeout"
37   msg "Starting make..."
39   rm -rf ${srcdir}/$_gitname-build
40   cp -a ${srcdir}/$_gitname{,-build}
41   cd ${srcdir}/$_gitname-build
43   #
44   # BUILD HERE
45   #
47   ./bootstrap
48   ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
49   make || return 1
52 package() {
53   cd ${srcdir}/$_gitname-build
54   make DESTDIR=${pkgdir} install || return 1
55   cd ${pkgdir}/etc
56   mkdir rc.d/
57   ln -s ../xrdp/xrdp.sh rc.d/rdpd
58   sed -i 's|/usr/local/|/usr/|'  xrdp/xrdp.sh
59