updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / gnome-disk-utility-git / PKGBUILD
blobbc4b57538625e926af802c471300a9ced45bdf7c
1 # Maintainer: Marti Raudsepp <marti@juffo.org>
2 # Original author: Jan de Groot <jgc@archlinux.org>
4 pkgname=gnome-disk-utility-git
5 pkgver=20110429
6 pkgrel=1
7 pkgdesc="Graphical interface for partitioning and monitoring disks via UDisks (aka Palimpsest)"
8 arch=(i686 x86_64)
9 url="http://library.gnome.org/users/palimpsest/stable/index-info.html.en"
10 license=('GPL')
11 depends=('dbus-glib' 'udisks' 'libatasmart' 'libnotify>=0.6.1' 'hicolor-icon-theme' 'gtk3' 'libunique3' 'nautilus')
12 makedepends=('gnome-doc-utils' 'gtk-doc' 'intltool' 'gnome-common')
13 optdepends=('gnome-keyring: Ability to store disk encryption passwords in GNOME keyring')
14 replaces=('gnome-mount')
15 provides=('gnome-disk-utility=2.32.2')
16 conflicts=('gnome-mount' 'gnome-disk-utility')
17 options=('!libtool' '!emptydirs')
18 install=gnome-disk-utility.install
19 source=()
21 _gitroot="git://git.gnome.org/gnome-disk-utility"
22 _gitname="gnome-disk-utility"
24 build() {
25   cd "$srcdir"
26   msg "Connecting to GIT server...."
28   if [ -d $_gitname ] ; then
29     cd $_gitname && git pull origin
30     msg "The local files are updated."
31   else
32     git clone $_gitroot $_gitname
33   fi
35   msg "GIT checkout done or server timeout"
36   msg "Starting make..."
38   rm -rf "$srcdir/$_gitname-build"
39   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
40   cd "$srcdir/$_gitname-build"
42   ./autogen.sh \
43     --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
44     --libexecdir=/usr/lib/gnome-disk-utility
45   make
46   make DESTDIR="$pkgdir" install