summaryrefslogtreecommitdiff
path: root/staging/gtk-vnc/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'staging/gtk-vnc/PKGBUILD')
-rw-r--r--staging/gtk-vnc/PKGBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/staging/gtk-vnc/PKGBUILD b/staging/gtk-vnc/PKGBUILD
new file mode 100644
index 000000000..b8e4c8856
--- /dev/null
+++ b/staging/gtk-vnc/PKGBUILD
@@ -0,0 +1,40 @@
+# $Id: PKGBUILD 134864 2011-08-08 05:59:44Z eric $
+# Maintainer:
+# 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.4.3
+pkgrel=2
+pkgdesc="A VNC viewer widget for GTK"
+arch=('i686' 'x86_64')
+url="http://live.gnome.org/gtk-vnc"
+license=('LGPL')
+depends=('gtk3')
+optdepends=('gtk2: GTK2 widget')
+makedepends=('intltool' 'pygtk' 'pygobject-devel' 'gtk-doc' 'gtk2')
+options=('!libtool')
+source=(http://ftp.gnome.org/pub/gnome/sources/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.bz2)
+sha256sums=('b9870d923d636d2e7547267d01c8cafdc06ad5b5b4987003ea3cd567bfbb6377')
+
+build() {
+ cd "$srcdir"
+ cp -a $pkgname-$pkgver gtk3-build
+
+ ( cd $pkgname-$pkgver
+ 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() {
+ cd "${srcdir}"
+ make -C $pkgname-$pkgver -j1 DESTDIR="${pkgdir}" install
+ make -C gtk3-build -j1 DESTDIR="${pkgdir}" install
+}