updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / gnome-packagekit-git / PKGBUILD
blobbd2aa9526e35a6f2b5a56d9b581d5a4e45b6fc69
1 # Maintainer: Shanto <shanto@hotmail.com>
2 # Contributor: onestep_ua <onestep@ukr.net>
3 # Contributor: Madek <gonzaloseguel@gmail.com>
4 # Contributor : Fplolz <fpoloz@gmail.com>
6 _pkgname=gnome-packagekit
7 pkgname=${_pkgname}-git
8 pkgver=20110415
9 pkgrel=2
10 _gitroot="git://git.gnome.org/gnome-packagekit"
11 _gitname="gnome-packagekit"
12 pkgdesc="Gnome tool for PackageKit, with pacman support"
13 arch=('i686' 'x86_64')
14 url="http://packagekit.org/"
15 license=('GPL')
16 depends=('packagekit' 'dconf' 'dbus' 'dbus-glib' 'glib2' 'gtk3' 'libcanberra' 'upower' 'fontconfig')
17 # FIXME: depends are not accurate.
18 optdepends=()
19 makedepends=('gtk-doc' 'intltool' 'git')
20 conflicts=('gnome-packagekit')
21 provides=('gnome-packagekit')
22 install=${_pkgname}.install
23 source=()
24 md5sums=()
26 build() {
27   cd "$srcdir"
28   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
35   msg "GIT checkout done or server timeout"
36   msg "Starting make..."
37   rm -rf "$srcdir/$_gitname-build"
38   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
39   cd "$srcdir/$_gitname-build"
40   ./autogen.sh
41   ./configure --prefix=/usr --sysconfdir=/etc --disable-gtk-doc --disable-scrollkeeper
42   make
45 package() {
46   cd "$srcdir/$_gitname-build"
47   make DESTDIR="$pkgdir/" install