2010-05-17 15:50:50 +08:00
|
|
|
# $Id: PKGBUILD 79610 2010-05-04 20:23:20Z ibiru $
|
2010-03-14 23:48:48 +08:00
|
|
|
# Maintainer: Jan de Groot <jgc@archlinux.org>
|
|
|
|
|
|
|
|
pkgname=gtk2
|
2010-05-17 15:50:50 +08:00
|
|
|
pkgver=2.20.1
|
2010-04-07 03:23:26 +08:00
|
|
|
pkgrel=2
|
2010-03-14 23:48:48 +08:00
|
|
|
pkgdesc="The GTK+ Toolkit (v2)"
|
2010-05-17 15:50:50 +08:00
|
|
|
arch=('i686' 'x86_64')
|
2010-03-14 23:48:48 +08:00
|
|
|
url="http://www.gtk.org/"
|
|
|
|
install=gtk2.install
|
2010-05-17 15:50:50 +08:00
|
|
|
depends=('atk>=1.30.0' 'pango>=1.28.0' 'libxcursor' 'libxinerama' 'libxrandr>=1.3.0' 'libxi>=1.3' 'libxcomposite' 'libxdamage' 'heimdal>=1.3.2' 'gnutls>=2.8.6' 'shared-mime-info' 'cairo>=1.8.10' 'libtiff>=3.9.2-2' 'libcups>=1.4.2-3')
|
2010-05-19 18:29:21 +08:00
|
|
|
makedepends=('pkgconfig' 'gobject-introspection' 'gtk-doc')
|
2010-03-14 23:48:48 +08:00
|
|
|
replaces=('gtkprint-cups' 'gail')
|
|
|
|
conflicts=('gtkprint-cups' 'gail')
|
|
|
|
provides=('gail=1.22.3')
|
|
|
|
options=('!libtool' '!docs')
|
|
|
|
backup=(etc/gtk-2.0/gtkrc)
|
|
|
|
license=('LGPL')
|
2010-04-07 03:23:26 +08:00
|
|
|
source=(http://ftp.gnome.org/pub/gnome/sources/gtk+/2.20/gtk+-${pkgver}.tar.bz2
|
2010-05-17 15:50:50 +08:00
|
|
|
xid-collision-debug.patch
|
|
|
|
revert_64bit_fix.patch)
|
|
|
|
sha256sums=('0e081731d21e34ff45c82199490c2889504fa8b3c7e117c043e82ababaec0f65'
|
|
|
|
'd758bb93e59df15a4ea7732cf984d1c3c19dff67c94b957575efea132b8fe558'
|
|
|
|
'20f3a03760f765b68b85b614810e5df4a689b609da1ae200aa30072475121b4c')
|
2010-03-14 23:48:48 +08:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${srcdir}/gtk+-${pkgver}"
|
|
|
|
patch -Np1 -i "${srcdir}/xid-collision-debug.patch" || return 1
|
2010-05-17 15:50:50 +08:00
|
|
|
patch -RNp1 -i ${srcdir}/revert_64bit_fix.patch || retun 1
|
2010-03-14 23:48:48 +08:00
|
|
|
|
|
|
|
CXX=/bin/false ./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
|
|
|
|
}
|