summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/gtk2
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core-testing/gtk2')
-rw-r--r--abs/core-testing/gtk2/PKGBUILD35
-rw-r--r--abs/core-testing/gtk2/gtk2.install27
-rw-r--r--abs/core-testing/gtk2/gtkclipboard-check.patch11
3 files changed, 73 insertions, 0 deletions
diff --git a/abs/core-testing/gtk2/PKGBUILD b/abs/core-testing/gtk2/PKGBUILD
new file mode 100644
index 0000000..7cab655
--- /dev/null
+++ b/abs/core-testing/gtk2/PKGBUILD
@@ -0,0 +1,35 @@
+# $Id: PKGBUILD 7635 2008-08-03 15:54:30Z jgc $
+# Maintainer: Jan de Groot <jgc@archlinux.org>
+
+pkgname=gtk2
+pkgver=2.12.11
+pkgrel=3
+pkgdesc="The GTK+ Toolkit (v2)"
+arch=(i686 x86_64)
+url="http://www.gtk.org/"
+install=gtk2.install
+depends=('atk>=1.22.0' 'pango>=1.20.5' 'libxcursor' 'libxinerama' 'libxrandr>=1.2.1' 'libxi' 'libcups>=1.3.8-2' 'libxcomposite' 'libxdamage' 'heimdal>=1.2' 'gnutls>=2.4.1')
+makedepends=('pkgconfig')
+replaces=('gtkprint-cups')
+conflicts=('gtkprint-cups')
+options=('!libtool')
+backup=(etc/gtk-2.0/gtkrc)
+license=('LGPL')
+source=(http://ftp.gnome.org/pub/gnome/sources/gtk+/2.12/gtk+-${pkgver}.tar.bz2
+ gtkclipboard-check.patch)
+md5sums=('f7aab88e856a813386f797aade5867ad'
+ '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=xfree \
+ --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/core-testing/gtk2/gtk2.install b/abs/core-testing/gtk2/gtk2.install
new file mode 100644
index 0000000..3b4a881
--- /dev/null
+++ b/abs/core-testing/gtk2/gtk2.install
@@ -0,0 +1,27 @@
+# arg 1: the new package version
+post_install() {
+ # we need to ldconfig first, in case xfree86's libs aren't
+ # in ld.so.cache yet
+ sbin/ldconfig -r .
+ mkdir -p etc/gtk-2.0 &>/dev/null
+ 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
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+post_upgrade() {
+ post_install $1
+}
+
+# arg 1: the old package version
+pre_remove() {
+ rm -f etc/gtk-2.0/gtk.immodules &>/dev/null
+ rm -f etc/gtk-2.0/gdk-pixbuf.loaders &>/dev/null
+ rmdir etc/gtk-2.0 &>/dev/null
+}
+
+op=$1
+shift
+
+$op $*
diff --git a/abs/core-testing/gtk2/gtkclipboard-check.patch b/abs/core-testing/gtk2/gtkclipboard-check.patch
new file mode 100644
index 0000000..48894fb
--- /dev/null
+++ b/abs/core-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);
+