1 # Contributor: Majki <majki@majki.hu>
5 pkgdesc="Terminal Server Client [tsclient] is a GTK2 frontend for rdesktop and other remote desktop tools."
7 url="http://sourceforge.net/projects/tsclient"
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
21 if [ -d $_svnmod/.svn ]; then
22 (cd $_svnmod && svn up -r $pkgver)
24 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
27 msg "SVN checkout done or server timeout"
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
38 msg "Running autogen.sh ..."
40 ./autogen.sh >$startdir/autogen.sh.log 2>&1 || return 1
42 msg "Running configure ..."
44 ./configure --prefix=/usr >$startdir/configure.log 2>&1 || return 1
49 make DESTDIR="$pkgdir" install