summaryrefslogtreecommitdiff
path: root/extra/vte/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/vte/PKGBUILD')
-rw-r--r--extra/vte/PKGBUILD66
1 files changed, 54 insertions, 12 deletions
diff --git a/extra/vte/PKGBUILD b/extra/vte/PKGBUILD
index 50ed147a1..8f1504185 100644
--- a/extra/vte/PKGBUILD
+++ b/extra/vte/PKGBUILD
@@ -1,24 +1,66 @@
-# $Id: PKGBUILD 101302 2010-11-28 20:55:38Z ibiru $
+# $Id: PKGBUILD 117622 2011-04-04 13:08:29Z ibiru $
# Maintainer: Jan de Groot <jgc@archlinux.org>
-pkgname=vte
-pkgver=0.26.2
+pkgbase=vte
+pkgname=(vte vte3 vte-common)
+pkgver=0.28.0
pkgrel=1
-pkgdesc="Virtual Terminal Emulator library"
+pkgdesc="Virtual Terminal Emulator widget for use with"
arch=('i686' 'x86_64')
license=('LGPL')
-depends=('gtk2>=2.22.0')
-options=('!libtool')
-makedepends=('pygtk>=2.22.0' 'intltool' 'gobject-introspection')
+options=('!libtool' '!emptydirs')
+makedepends=('pygtk' 'intltool' 'gobject-introspection' 'gtk2' 'gtk3' 'pygobject-devel' 'gtk-doc')
url="http://www.gnome.org"
-source=(http://ftp.gnome.org/pub/GNOME/sources/vte/0.26/vte-${pkgver}.tar.bz2)
-sha256sums=('f02c350340266c9515a98b8f69c72b4bdc53b352cd053624a63a7cb97ddec9bd')
+source=(http://ftp.gnome.org/pub/GNOME/sources/vte/0.28/vte-${pkgver}.tar.bz2)
+sha256sums=('1467c566aa9e55c1e33aa1dfea3f14dd4c8a4a63ff0005b254bd8c2c375d952e')
+
build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
- PYTHON=python2 ./configure --prefix=/usr --sysconfdir=/etc \
+ cd "${srcdir}/${pkgbase}-${pkgver}"
+ #warning: type-punning to incomplete type might break strict-aliasing rules
+ export CFLAGS="$CFLAGS -fno-strict-aliasing"
+
+ mkdir build-gtk2
+ pushd build-gtk2
+ PYTHON=python2 ../configure --prefix=/usr --sysconfdir=/etc \
+ --libexecdir=/usr/lib/vte \
+ --localstatedir=/var --disable-static \
+ --enable-introspection --with-gtk=2.0 \
+ --enable-gtk-doc
+ make
+ popd
+
+ mkdir build-gtk3
+ pushd build-gtk3
+ PYTHON=python2 ../configure --prefix=/usr --sysconfdir=/etc \
--libexecdir=/usr/lib/vte \
--localstatedir=/var --disable-static \
- --enable-introspection
+ --enable-introspection --with-gtk=3.0 \
+ --enable-gtk-doc
make
+ popd
+}
+
+package_vte(){
+ pkgdesc+=" GTK2"
+ depends=('gtk2' 'vte-common')
+ cd "${srcdir}/${pkgbase}-${pkgver}"/build-gtk2
make DESTDIR="${pkgdir}" install
+
+ rm "${pkgdir}"/usr/lib/vte/gnome-pty-helper
+}
+
+package_vte3(){
+ pkgdesc+=" GTK3"
+ depends=('gtk3' 'vte-common')
+ cd "${srcdir}/${pkgbase}-${pkgver}"/build-gtk3
+ make DESTDIR="${pkgdir}" install
+
+ rm "${pkgdir}"/usr/lib/vte/gnome-pty-helper
+}
+
+package_vte-common() {
+ pkgdesc="Common files used by vte and vte3"
+ cd "${srcdir}/${pkgbase}-${pkgver}"/build-gtk3
+
+ make -C gnome-pty-helper DESTDIR="${pkgdir}" install
}