updated on Wed Jan 25 00:20:47 UTC 2012
[aur-mirror.git] / tsclient2 / PKGBUILD
blob1302a4a3d3d9e05c57b3fb2275c06d1243f0e9f8
1 # Contributor: Majki <majki@majki.hu>
2 pkgname=tsclient2
3 pkgver=2.0.1
4 pkgrel=8
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')
11 conflicts=('tsclient')
12 source=(http://downloads.sourceforge.net/sourceforge/tsclient/tsclient-$pkgver.tar.bz2)
13 md5sums=('3de7131156f37c5ef1028a5f03ed021b')
14 install=${pkgname}.install
16 build() {
17   cd "$srcdir/tsclient-$pkgver"
19   sed -i '/PKG_CONFIG.*libgnome-2.0/s/libgnome-2.0/libgnome-2.0\ libgnomeui-2.0/' configure
20   sed -i '/Exec/s/.*/Exec=tsclient/' data/tsclient.desktop.in
21   sed -i '/notify_notification_new/s/, NULL//' src/plugins/default/tsc-rdp-connection.c
22   sed -i '/notify_notification_new/s/, NULL//' src/plugins/default/tsc-vnc-connection.c
23   sed -i 's/libnm_glib/libnm-glib/g' configure
24   ./configure --prefix=/usr
25   make || return 1
26   make DESTDIR="$pkgdir" install