# Maintainer: Natanael Copa pkgname=gtk-vnc pkgver=0.5.4 pkgrel=0 pkgdesc="A VNC viewer widget for GTK" url="http://live.gnome.org/gtk-vnc" arch="all" license="LGPL" depends_dev="gtk+3.0-dev gnutls-dev glib-dev" makedepends="$depends_dev libiconv-dev gettext-dev intltool expat-dev libgcrypt-dev libgpg-error-dev cyrus-sasl-dev perl-text-csv gobject-introspection-dev vala sed" source="http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz" subpackages="$pkgname-dev gvncviewer $pkgname-lang $pkgname-doc" _builddir="$srcdir/$pkgname-$pkgver" prepare() { cd "$_builddir" } build () { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --with-examples \ --enable-introspection \ --with-gtk=3.0 \ --disable-static \ || return 1 make || return 1 } package() { cd "$_builddir" make -j1 DESTDIR="$pkgdir" install || return 1 rm "$pkgdir"/usr/lib/*.la } gvncviewer() { pkgdesc="Demo application for gtk-vnc" mkdir -p "$subpkgdir"/usr mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ } md5sums="bc7b79c4b8124294dacf91b8128a158c gtk-vnc-0.5.4.tar.xz" sha256sums="488aa97a76ce6868160699cd45d4a0ee0fe6f0ad4631737c6ddd84450f6c9ce7 gtk-vnc-0.5.4.tar.xz" sha512sums="068f7e29d40c677c9453364e33ab3a57e155dd0715299c8dee3f9933ecdb2e3bc4aea6dd722f5bc846d9b883e4f5a6de7b46742f004b348a551100ea7720da61 gtk-vnc-0.5.4.tar.xz"