diff options
author | James Meyer <james.meyer@operamail.com> | 2009-01-04 18:49:24 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2009-01-04 18:49:24 (GMT) |
commit | 116edc0c0cc1b926acce635a76d102408b118a92 (patch) | |
tree | 237e661dc7f5b1bb4b18350ab3a48e5a15283851 /abs/extra-testing/gtk2 | |
parent | 29e945b91760568116a21e0076fae046b33a2663 (diff) | |
parent | 7f42f55d022dc8ca818a76dccfc66fce7c8dea4f (diff) | |
download | linhes_pkgbuild-116edc0c0cc1b926acce635a76d102408b118a92.zip linhes_pkgbuild-116edc0c0cc1b926acce635a76d102408b118a92.tar.gz linhes_pkgbuild-116edc0c0cc1b926acce635a76d102408b118a92.tar.bz2 |
Merge branch 'HEAD' of ssh://jams@knoppmyth.net/mount/repository/LinHES-PKGBUILD.git
Diffstat (limited to 'abs/extra-testing/gtk2')
-rw-r--r-- | abs/extra-testing/gtk2/PKGBUILD | 37 | ||||
-rw-r--r-- | abs/extra-testing/gtk2/gtk2.install | 13 | ||||
-rw-r--r-- | abs/extra-testing/gtk2/gtkclipboard-check.patch | 11 |
3 files changed, 61 insertions, 0 deletions
diff --git a/abs/extra-testing/gtk2/PKGBUILD b/abs/extra-testing/gtk2/PKGBUILD new file mode 100644 index 0000000..d119d56 --- /dev/null +++ b/abs/extra-testing/gtk2/PKGBUILD @@ -0,0 +1,37 @@ +# $Id: PKGBUILD 19648 2008-11-28 20:15:22Z jgc $ +# Maintainer: Jan de Groot <jgc@archlinux.org> + +pkgname=gtk2 +pkgver=2.14.5 +pkgrel=1 +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.3' 'libxcursor' 'libxinerama' 'libxrandr>=1.2.1' 'libxi' 'libcups>=1.3.9' 'libxcomposite' 'libxdamage' 'heimdal>=1.2' 'gnutls>=2.4.1') +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) +md5sums=('1b1b5d7ab5a25e84682cb27ee4808a40' + '4025d3c15d6c6f73a032f403ffd4ff1c') + +build() { + cd ${startdir}/src/gtk+-${pkgver} + # Workaround patch for flash + patch -Np1 -i ${startdir}/src/gtkclipboard-check.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=${startdir}/pkg install || return 1 + + echo 'gtk-fallback-icon-theme = "gnome"' > ${startdir}/pkg/etc/gtk-2.0/gtkrc || return 1 +} diff --git a/abs/extra-testing/gtk2/gtk2.install b/abs/extra-testing/gtk2/gtk2.install new file mode 100644 index 0000000..6d415ad --- /dev/null +++ b/abs/extra-testing/gtk2/gtk2.install @@ -0,0 +1,13 @@ +post_install() { + usr/bin/gtk-query-immodules-2.0 > etc/gtk-2.0/gtk.immodules + usr/bin/gdk-pixbuf-query-loaders > etc/gtk-2.0/gdk-pixbuf.loaders +} + +post_upgrade() { + post_install +} + +pre_remove() { + rm -f etc/gtk-2.0/gtk.immodules &>/dev/null + rm -f etc/gtk-2.0/gdk-pixbuf.loaders &>/dev/null +} diff --git a/abs/extra-testing/gtk2/gtkclipboard-check.patch b/abs/extra-testing/gtk2/gtkclipboard-check.patch new file mode 100644 index 0000000..48894fb --- /dev/null +++ b/abs/extra-testing/gtk2/gtkclipboard-check.patch @@ -0,0 +1,11 @@ +--- gtk+-2.11.6/gtk/gtkclipboard.c.orig 2007-08-18 13:48:22.000000000 +0000 ++++ gtk+-2.11.6/gtk/gtkclipboard.c 2007-08-18 13:49:08.000000000 +0000 +@@ -287,6 +287,8 @@ + gtk_clipboard_get_for_display (GdkDisplay *display, + GdkAtom selection) + { ++ if (display == NULL) ++ return NULL; + g_return_val_if_fail (GDK_IS_DISPLAY (display), NULL); + g_return_val_if_fail (!display->closed, NULL); + |