Skip to content

Instantly share code, notes, and snippets.

@bbidulock
Created June 2, 2014 11:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bbidulock/60f51eec4fce0a6694ed to your computer and use it in GitHub Desktop.
Save bbidulock/60f51eec4fce0a6694ed to your computer and use it in GitHub Desktop.
# Maintainer: Brian Bidulock <bidulock@openss7.org>
# Contributor: Majki <majki@majki.hu>
pkgname=tsclient2
pkgver=2.0.1
pkgrel=9
pkgdesc="Terminal Server Client [tsclient] is a GTK2 frontend for rdesktop and other remote desktop tools."
arch=('i686' 'x86_64')
url="http://sourceforge.net/projects/tsclient"
license=('GPL')
depends=('rdesktop' 'gnome-desktop2' 'libgnomeui' 'networkmanager' 'desktop-file-utils')
makedepends=('perlxml' 'sharutils')
conflicts=('tsclient')
source=(http://downloads.sourceforge.net/sourceforge/tsclient/tsclient-$pkgver.tar.bz2)
md5sums=('3de7131156f37c5ef1028a5f03ed021b')
install=${pkgname}.install
build() {
cd "$srcdir/tsclient-$pkgver"
sed -i '/PKG_CONFIG.*libgnome-2.0/s/libgnome-2.0/libgnome-2.0\ libgnomeui-2.0/' configure
sed -i '/Exec/s/.*/Exec=tsclient/' data/tsclient.desktop.in
sed -i '/notify_notification_new/s/, NULL//' src/plugins/default/tsc-rdp-connection.c
sed -i '/notify_notification_new/s/, NULL//' src/plugins/default/tsc-vnc-connection.c
sed -i 's/libnm_glib/libnm-glib/g' configure
./configure --prefix=/usr --sysconfdir=/etc
make
}
package() {
cd "$srcdir/tsclient-$pkgver"
make DESTDIR="$pkgdir" install
}
post_install() {
gtk-update-icon-cache -f /usr/share/icons/hicolor
update-desktop-database -q
}
post_remove() {
post_install
}
post_upgrade() {
post_install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment