summaryrefslogtreecommitdiff
path: root/extra/vte/PKGBUILD
blob: b518910dc41cd761a0f4342b25ff9419606a9259 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# $Id: PKGBUILD 127491 2011-06-15 15:04:50Z ibiru $
# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgbase=vte
pkgname=(vte vte3 vte-common)
pkgver=0.28.1
pkgrel=1
pkgdesc="Virtual Terminal Emulator widget for use with"
arch=('i686' 'x86_64')
license=('LGPL')
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.28/vte-${pkgver}.tar.xz)
sha256sums=('ad1b868356e0231c42ac2493d3e2a7726014c9dc4110ec89fbb01aee8c2ed7ad')

build() {
  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 --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
}