updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / tsclient2-svn / PKGBUILD
blob59466fd3af571bd8981494e7127044ce2b8bc460
1 # Contributor: Majki <majki@majki.hu>
2 pkgname=tsclient2-svn
3 pkgver=127
4 pkgrel=4
5 pkgdesc="Terminal Server Client [tsclient] is a GTK2 frontend for rdesktop and other remote desktop tools."
6 arch=('i686' 'x86_64')
7 url="http://sourceforge.net/projects/tsclient"
8 license=('GPL')
9 depends=('rdesktop>=1.3' 'gnome-panel>=2.0' 'networkmanager>=0.7.0')
10 makedepends=('sed' 'perlxml' 'sharutils' 'pkgconfig' 'subversion' 'gnome-common')
11 conflicts=('tsclient')
12 provides=('tsclient2' 'tsclient')
13 replaces=('tsclient2')
14 install=${pkgname}.install
16 _svntrunk=https://tsclient.svn.sourceforge.net/svnroot/tsclient
17 _svnmod=tsclient
19 build() {
20   cd $startdir/src
21   if [ -d $_svnmod/.svn ]; then
22     (cd $_svnmod && svn up -r $pkgver)
23   else
24     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
25   fi
26   
27   msg "SVN checkout done or server timeout"
28   
29   cd $startdir/src/$_svnmod/branches/tsclient-unstable
31   msg "Patching files ..."
33   sed -i '/Exec/s/.*/Exec=tsclient/' data/tsclient.desktop.in
34   sed -i '/notify_notification_new/s/, NULL//' src/plugins/default/tsc-dmx-connection.c
35   sed -i '/notify_notification_new/s/, NULL//' src/plugins/default/tsc-rdp-connection.c
36   sed -i '/notify_notification_new/s/, NULL//' src/plugins/default/tsc-vnc-connection.c
37   
38   msg "Running autogen.sh ..."
39   
40   ./autogen.sh >$startdir/autogen.sh.log 2>&1 || return 1
42   msg "Running configure ..."
43   
44   ./configure --prefix=/usr >$startdir/configure.log 2>&1 || return 1
46   msg "Building ..."
48   make || return 1
49   make DESTDIR="$pkgdir" install