summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/gtk2/PKGBUILD
blob: 1980398c8f12a9646de69e7e899f856b53c0acb3 (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
# $Id: PKGBUILD 29393 2009-03-08 14:03:29Z jgc $
# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=gtk2
pkgver=2.14.7
pkgrel=2
pkgdesc="The GTK+ Toolkit (v2)"
arch=(i686 x86_64)
url="http://www.gtk.org/"
install=gtk2.install
depends=('atk>=1.24.0' 'pango>=1.22.4' 'libxcursor' 'libxinerama' 'libxrandr>=1.2.1' 'libxi' 'libcups>=1.3.9' 'libxcomposite' 'libxdamage' 'heimdal>=1.2.1' 'gnutls>=2.6.3' 'shared-mime-info')
makedepends=('pkgconfig')
replaces=('gtkprint-cups' 'gail')
conflicts=('gtkprint-cups' 'gail')
provides=('gail=1.22.3')
options=('!libtool' '!docs')
backup=(etc/gtk-2.0/gtkrc)
license=('LGPL')
source=(http://ftp.gnome.org/pub/gnome/sources/gtk+/2.14/gtk+-${pkgver}.tar.bz2
	gtkclipboard-check.patch
	gtk2-emit-size-change.patch)
md5sums=('fb1614d4b2adba7b078e2e799b5db604'
         '4025d3c15d6c6f73a032f403ffd4ff1c'
         '942981cbba5057d9f02f4393e552f101')

build() {
  cd "${srcdir}/gtk+-${pkgver}"
  # Workaround patch for flash
  patch -Np1 -i "${srcdir}/gtkclipboard-check.patch" || return 1
  # gdk does not let xfwm know about screen size changes
  patch -Np1 -i "${srcdir}/gtk2-emit-size-change.patch" || return 1

  ./configure --prefix=/usr --sysconfdir=/etc \
              --localstatedir=/var --with-xinput=yes \
	      --without-libjasper \
	      --with-included-loaders=png || return 1
  make || return 1
  make DESTDIR="${pkgdir}" install || return 1

  echo 'gtk-fallback-icon-theme = "gnome"' > "${pkgdir}/etc/gtk-2.0/gtkrc" || return 1
}