summaryrefslogtreecommitdiffstats
path: root/abs/core/glib2
diff options
context:
space:
mode:
authorJames Meyer <James.meyer@operamail.com>2008-10-02 03:19:12 (GMT)
committerJames Meyer <James.meyer@operamail.com>2008-10-02 03:19:12 (GMT)
commit0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a (patch)
treec0aa2c0b53c317be87eacfcb77b63f53f1f415e7 /abs/core/glib2
downloadlinhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.zip
linhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.tar.gz
linhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.tar.bz2
initial import
Diffstat (limited to 'abs/core/glib2')
-rw-r--r--abs/core/glib2/PKGBUILD32
-rw-r--r--abs/core/glib2/gkeyfile-bool-nocase.patch16
-rw-r--r--abs/core/glib2/glib2.csh1
-rw-r--r--abs/core/glib2/glib2.sh1
4 files changed, 50 insertions, 0 deletions
diff --git a/abs/core/glib2/PKGBUILD b/abs/core/glib2/PKGBUILD
new file mode 100644
index 0000000..3e4abd7
--- /dev/null
+++ b/abs/core/glib2/PKGBUILD
@@ -0,0 +1,32 @@
+# $Id: PKGBUILD 7524 2008-08-02 20:27:35Z jgc $
+# Maintainer: Jan de Groot <jgc@archlinux.org>
+
+pkgname=glib2
+pkgver=2.16.5
+pkgrel=1
+pkgdesc="Common C routines used by GTK+ 2.4 and other libs"
+url="http://www.gtk.org/"
+arch=(i686 x86_64)
+license=('LGPL')
+depends=('pcre>=7.7')
+makedepends=('pkgconfig')
+options=('!libtool')
+source=(http://ftp.gnome.org/pub/GNOME/sources/glib/2.16/glib-${pkgver}.tar.bz2
+ gkeyfile-bool-nocase.patch
+ glib2.sh
+ glib2.csh)
+md5sums=('039f02d47d4071322a3f00abf031e5d9'
+ '5ca65611e824662146369e814d49ad06'
+ '803017b365bd35dc20b092ce43b8c8c5'
+ '90c7b830bef4baf225c2eb8b7ead0cab')
+
+build() {
+ cd ${startdir}/src/glib-${pkgver}
+ patch -Np0 -i ${startdir}/src/gkeyfile-bool-nocase.patch || return 1
+ ./configure --prefix=/usr --enable-static --enable-shared --with-pcre=system --disable-fam || return 1
+ make || return 1
+ make DESTDIR=${startdir}/pkg install || return 1
+
+ install -d -m755 ${startdir}/pkg/etc/profile.d
+ install -m755 ${startdir}/src/glib2.{csh,sh} ${startdir}/pkg/etc/profile.d/ || return 1
+}
diff --git a/abs/core/glib2/gkeyfile-bool-nocase.patch b/abs/core/glib2/gkeyfile-bool-nocase.patch
new file mode 100644
index 0000000..133f135
--- /dev/null
+++ b/abs/core/glib2/gkeyfile-bool-nocase.patch
@@ -0,0 +1,16 @@
+Index: glib/gkeyfile.c
+===================================================================
+--- glib/gkeyfile.c (revision 5714)
++++ glib/gkeyfile.c (working copy)
+@@ -3639,9 +3639,9 @@
+ {
+ gchar *value_utf8;
+
+- if (strcmp (value, "true") == 0 || strcmp (value, "1") == 0)
++ if (g_ascii_strcasecmp (value, "true") == 0 || strcmp (value, "1") == 0)
+ return TRUE;
+- else if (strcmp (value, "false") == 0 || strcmp (value, "0") == 0)
++ else if (g_ascii_strcasecmp (value, "false") == 0 || strcmp (value, "0") == 0)
+ return FALSE;
+
+ value_utf8 = _g_utf8_make_valid (value);
diff --git a/abs/core/glib2/glib2.csh b/abs/core/glib2/glib2.csh
new file mode 100644
index 0000000..7aa3a2f
--- /dev/null
+++ b/abs/core/glib2/glib2.csh
@@ -0,0 +1 @@
+setenv G_BROKEN_FILENAMES 1
diff --git a/abs/core/glib2/glib2.sh b/abs/core/glib2/glib2.sh
new file mode 100644
index 0000000..96a056e
--- /dev/null
+++ b/abs/core/glib2/glib2.sh
@@ -0,0 +1 @@
+export G_BROKEN_FILENAMES=1