# $Id: PKGBUILD 168733 2012-10-15 02:01:46Z eric $ # Maintainer: Jan Alexander Steffens (heftig) # Contributor: Jan de Groot # Contributor: Allan McRae # Contributor: lp76 pkgname=gtk-vnc pkgver=0.5.1 pkgrel=1 pkgdesc="A VNC viewer widget for GTK" arch=('i686' 'x86_64' 'mips64el') url="http://live.gnome.org/gtk-vnc" license=('LGPL') depends=('libgcrypt' 'gtk3') optdepends=('gtk2: GTK2 widget') makedepends=('intltool' 'pygtk' 'pygobject2-devel' 'gtk-doc' 'gtk2' 'vala' 'gobject-introspection') options=('!libtool') source=(http://ftp.gnome.org/pub/gnome/sources/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz) sha256sums=('1ad1847a23f8ea8fbf2396de46c51ec0900ee3698cde4e205760518cd1e01a40') build() { rm -rf gtk2-build gtk3-build cp -a $pkgname-$pkgver gtk2-build mv $pkgname-$pkgver gtk3-build ( cd gtk2-build PYTHON=/usr/bin/python2 ./configure --prefix=/usr \ --with-python --disable-static --with-gtk=2.0 make ) ( cd gtk3-build PYTHON=/usr/bin/python2 ./configure --prefix=/usr \ --with-python --with-examples --disable-static --with-gtk=3.0 make ) } package() { make -C gtk2-build DESTDIR="${pkgdir}" install make -C gtk3-build DESTDIR="${pkgdir}" install }