diff options
Diffstat (limited to 'testing/gtk-vnc/PKGBUILD')
-rw-r--r-- | testing/gtk-vnc/PKGBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/testing/gtk-vnc/PKGBUILD b/testing/gtk-vnc/PKGBUILD new file mode 100644 index 000000000..c61a17dd1 --- /dev/null +++ b/testing/gtk-vnc/PKGBUILD @@ -0,0 +1,40 @@ +# $Id: PKGBUILD 155176 2012-04-01 11:34:48Z heftig $ +# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> +# Contributor: Jan de Groot <jgc@archlinux.org> +# Contributor: Allan McRae <mcrae_allan@hotmail.com> +# Contributor: lp76 <l.peduto@gmail.com> + +pkgname=gtk-vnc +pkgver=0.5.0 +pkgrel=1 +pkgdesc="A VNC viewer widget for GTK" +arch=('i686' 'x86_64') +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=('1de65d8ffa8c25a61a8e8c4b7e5963d4a826f4fcf7120d66ed027f5f70cc8f81') + +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 -j1 DESTDIR="${pkgdir}" install + make -C gtk3-build -j1 DESTDIR="${pkgdir}" install +} |