updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / gconf-ubuntu / PKGBUILD
blob4e7b54e1224d0a6a73dda2749dd8e295c929166a
1 # Maintainer: Xiao-Long Chen <chenxiaolong@cxl.epac.to>
2 # Original Maintainer: Jan de Groot <jan@archlinux.org>
4 pkgname=gconf-ubuntu
5 _ubuntu_rel=1ubuntu3
6 pkgver=3.2.3.${_ubuntu_rel}
7 pkgrel=100
8 pkgdesc="A configuration database system"
9 arch=('i686' 'x86_64')
10 license=('LGPL')
11 depends=('libxml2' 'polkit' 'libldap' 'dbus-glib' 'gtk3')
12 makedepends=('intltool' 'gtk-doc' 'gobject-introspection')
13 provides=("gconf=${pkgver}")
14 conflicts=('gconf')
15 options=('!libtool' 'emptydirs')
16 install=gconf.install
17 url="http://www.gnome.org"
18 source=("http://ftp.gnome.org/pub/gnome/sources/GConf/3.2/GConf-${pkgver%.*}.tar.xz"
19         "http://archive.ubuntu.com/ubuntu/pool/main/g/${pkgname%-*}/${pkgname%-*}_${pkgver%.*}-${_ubuntu_rel}.debian.tar.gz"
20         'gconf-merge-schema'
21         'gconfpkg'
22         'gconf-reload.patch')
23 sha512sums=('1b160a77d73d1c30b3b308c21d5f75734ed1d844d7e3a930342f511580166eaafe3f355d8b11c3070e2a6282c0c7dc71c82ca1ec112a0f43fb351cbcb16cf278'
24             'f4cae62fc35c278f8bf87315d58af75d1d1dbb9b1289614966afb720c9f62f3149e512b72f55e722a8f7dea9dc3eb04816fce40075611f208121c5a361f0e02b'
25             '0d2a099c772c9fbe535b6c5c35078038987d214a2b68f2d589f46b8bf4e5a8c604624363cd32747b6447d04037d2fb0870502982425629af25ac3ef8ebb2cde4'
26             'c1a180fdbd88415f4d0277919bdd3af8c1003e44f81a6ab7f7c341a4065f9e01e320e639177ad93d53463ceecb7f1331171980edabcebdc10998d7f16c490494'
27             '1af1d0c926d622794b5d2f21646783c276a8a5c2c6d8b8236804bfcaeb71ab40c6658b17eb4599ca01fb8fe33a513ebe7ec9e8c23e9a21ccae622f6d10aa5657')
29 build() {
30   cd "${srcdir}/GConf-${pkgver%.*}"
31   # Patch from fedora - reloads gconf after installing schemas
32   patch -Np1 -i "${srcdir}/gconf-reload.patch"
34   # Python2 fix
35   sed -i '1s|#!/usr/bin/env python$|&2|' gsettings/gsettings-schema-convert
37   #Apply Ubuntu patches
38   for i in $(cat "${srcdir}/debian/patches/series" | grep -v '#'); do
39     patch -Np1 -i "${srcdir}/debian/patches/${i}"
40   done
42   ./configure \
43     --prefix=/usr \
44     --sysconfdir=/etc \
45     --localstatedir=/var \
46     --libexecdir=/usr/lib/GConf \
47     --disable-static \
48     --enable-defaults-service \
49     --with-gtk=3.0 \
50     --disable-orbit
52   make pkglibdir=/usr/lib/GConf ${MAKEFLAGS}
55 package() {
56   cd "${srcdir}/GConf-${pkgver%.*}"
57   make DESTDIR="${pkgdir}" install
59   install -m755 -d "${pkgdir}/etc/gconf/gconf.xml.system"
60   install -m755 "${srcdir}/gconf-merge-schema" "${pkgdir}/usr/bin/"
61   install -Dm755 "${srcdir}/gconfpkg" "${pkgdir}/usr/sbin/gconfpkg"
63   #Install Ubuntu stuff
65   #Create directories -> from gconf2-common.dirs
66   install -dm755 "${pkgdir}/etc/gconf/2/"
67   install -dm755 "${pkgdir}/etc/gconf/gconf.xml.mandatory/"
68   install -dm755 "${pkgdir}/etc/gconf/gconf.xml.defaults/"
69   install -dm755 "${pkgdir}/etc/gconf/gconf.xml.system/"
70   install -dm755 "${pkgdir}/usr/share/gconf/defaults/"
71   install -dm755 "${pkgdir}/usr/share/gconf/mandatory/"
72   install -dm755 "${pkgdir}/usr/share/gconf/schemas/"
73   install -dm755 "${pkgdir}/var/lib/gconf/defaults/"
74   install -dm755 "${pkgdir}/var/lib/gconf/debian.defaults/"
75   install -dm755 "${pkgdir}/var/lib/gconf/debian.mandatory/"
77   #Install xinit file
78   install -dm755 "${pkgdir}/etc/X11/xinit/xinitrc.d/"
79   install -m755 "${srcdir}/debian/70gconfd_path-on-session" "${pkgdir}/etc/X11/xinit/xinitrc.d/"
81   #Install configuration files
82   install -dm755 "${pkgdir}/usr/share/gconf/"
83   for i in "${srcdir}"/debian/default.path*; do
84     install -m644 "${i}" "${pkgdir}/usr/share/gconf/"
85   done
86   install -dm755 "${pkgdir}/etc/gconf/2/"
87   install -m644 "${pkgdir}/usr/share/gconf/default.path" "${pkgdir}/etc/gconf/2/path"
89   #Install binaries
90   install -dm755 "${pkgdir}/usr/sbin/"
91   install -m755 "${srcdir}/debian/gconf-schemas" "${pkgdir}/usr/sbin/"
92   #Python 2 fix
93     sed -i 's|^\(#!.*python\)$|\12|g' "${pkgdir}/usr/sbin/gconf-schemas"
94   install -dm755 "${pkgdir}/usr/bin/"
95   install -m755 "${srcdir}/debian/update-gconf-defaults" "${pkgdir}/usr/bin/"
96   #Python 2 fix
97     sed -i 's|^\(#!.*python\)$|\12|g' "${pkgdir}/usr/bin/update-gconf-defaults"
99   #Install manuals
100   install -dm755 "${pkgdir}/usr/share/man/man8/"
101   install -m644 "${srcdir}/debian/update-gconf-defaults.8" "${pkgdir}/usr/share/man/man8/"