1 # Maintainer: Andrea Scarpino <andrea@archlinux.org>
3 pkgname=meego-gnome-control-center-git
6 pkgdesc="The Control Center for GNOME (MeeGo version)"
11 depends=('gnome-common' 'gnome-desktop' 'gnome-menus' 'libunique'
12 'gnome-settings-daemon' 'mx' 'metacity' 'desktop-file-utils'
13 'shared-mime-info' 'hicolor-icon-theme')
14 makedepends=('git' 'intltool' 'gnome-doc-utils')
15 provides=('meego-gnome-control-center')
16 conflicts=('meego-gnome-control-center' 'gnome-control-center')
17 install=meego-gnome-control-center.install
19 source=('mx-header-path.patch')
20 md5sums=('9f17c42436649b0acce3ba1d9a0d35ac')
22 _gitroot="git://gitorious.org/meego-netbook-ux/gnome-control-center.git"
23 _gitname="gnome-control-center"
27 msg "Connecting to GIT server...."
29 if [ -d $_gitname ] ; then
30 cd $_gitname && git pull origin
31 msg "The local files are updated."
33 git clone $_gitroot $_gitname
36 msg "GIT checkout done or server timeout"
37 msg "Starting make..."
39 rm -rf "$srcdir/$_gitname-build"
40 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
41 cd "$srcdir/$_gitname-build"
43 patch -Np0 -i ${srcdir}/mx-header-path.patch
46 ./configure --prefix=/usr \
48 --disable-update-mimedb \
54 cd "$srcdir/$_gitname-build"
55 make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="$pkgdir/" install
57 install -m755 -d "${pkgdir}/usr/share/gconf/schemas"
58 gconf-merge-schema "${pkgdir}/usr/share/gconf/schemas/gnome-control-center.schemas" \
59 --domain gnome-control-center-2.0 ${pkgdir}/etc/gconf/schemas/*.schemas
60 rm -f ${pkgdir}/etc/gconf/schemas/*.schemas
62 rm ${pkgdir}/usr/share/applications/mimeinfo.cache