updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / meego-gnome-control-center-git / PKGBUILD
blobb0ebf88910df250039bd89b201259060f4d55f26
1 # Maintainer: Andrea Scarpino <andrea@archlinux.org>
3 pkgname=meego-gnome-control-center-git
4 pkgver=20110219
5 pkgrel=1
6 pkgdesc="The Control Center for GNOME (MeeGo version)"
7 arch=('i686' 'x86_64')
8 url="http://meego.com"
9 license=('GPL')
10 groups=('meego')
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
18 options=('!libtool')
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"
25 build() {
26   cd "$srcdir"
27   msg "Connecting to GIT server...."
29   if [ -d $_gitname ] ; then
30     cd $_gitname && git pull origin
31     msg "The local files are updated."
32   else
33     git clone $_gitroot $_gitname
34   fi
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
45   ./autogen.sh
46   ./configure --prefix=/usr \
47     --sysconfdir=/etc \
48     --disable-update-mimedb \
49     --libexec=/usr/lib
50   make
53 package() {
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