updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / lib32-gconf / PKGBUILD
blob2dc6bc0092c686e48b8549540aa92dac072077fc
1 # Maintainer: josephgbr <rafael.f.f1 at gmail dot com>
2 # Contributor:
4 _pkgbase=gconf
5 pkgname=lib32-${_pkgbase}
6 pkgver=3.2.3
7 pkgrel=1
8 pkgdesc="A configuration database system (32 bit)"
9 arch=('x86_64')
10 license=('LGPL')
11 depends=('lib32-libxml2' 'lib32-polkit' 'lib32-libldap'
12          'lib32-dbus-glib' 'lib32-gtk3' "$_pkgbase")
13 makedepends=('intltool' 'gtk-doc' 'gcc-multilib')
14 options=('!libtool')
15 url="http://www.gnome.org"
16 source=(http://ftp.gnome.org/pub/gnome/sources/GConf/3.2/GConf-${pkgver}.tar.xz
17         gconf-reload.patch
18         01_xml-gettext-domain.patch)
19 sha256sums=('9eb55dd1d009b6eba9c32e3fae87d3aa45a33629a5e2031ed9f5acb05efaa149'
20             '567b78d8b4b4bbcb77c5f134d57bc503c34867fcc6341c0b01716bcaa4a21694'
21             'c883dec2b96978874a53700cfe7f26f24f8296767203e970bc6402b4b9945eb8')
23 build() {
24   export CC='gcc -m32'
25   export CXX='g++ -m32'
26   export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
27   
28   cd "${srcdir}/GConf-${pkgver}"
29   
30   # Patch from fedora - reloads gconf after installing schemas
31   patch -Np1 -i "${srcdir}/gconf-reload.patch"
32   # http://bugzilla.gnome.org/show_bug.cgi?id=568845
33   patch -Np1 -i "${srcdir}/01_xml-gettext-domain.patch"
34   # Python2 fix
35   sed -i '1s|#!/usr/bin/env python$|&2|' gsettings/gsettings-schema-convert
37   ./configure \
38         --prefix=/usr \
39         --sysconfdir=/etc \
40         --localstatedir=/var \
41         --libdir=/usr/lib32 \
42         --libexecdir=/usr/lib32/GConf \
43         --enable-defaults-service \
44         --enable-introspection=no \
45         --with-gtk=3.0 \
46         --disable-static \
47         --disable-orbit
49   make
52 package() {
53   cd "${srcdir}/GConf-${pkgver}"  
54   make DESTDIR="${pkgdir}" install
55   rm -rf "${pkgdir}"/{etc,usr/{bin,include,share}}