updated on Wed Jan 18 16:10:53 UTC 2012
[aur-mirror.git] / gnumeric-git / PKGBUILD
blobb604633dff0dd65e88fb2607538aa71461436340
1 # Maintainer: moostik <mooostik_at_gmail.com>
3 pkgname=gnumeric-git
4 pkgver=20120105
5 pkgrel=1
6 pkgdesc="A GNOME Spreadsheet Program (Git version)"
7 arch=('i686' 'x86_64')
8 url="http://www.gnome.org/projects/gnumeric/"
9 license=('GPL')
10 conflicts=('gnumeric')
11 depends=('goffice-git' 'dconf' 'desktop-file-utils' 'hicolor-icon-theme')
12 makedepends=('intltool' 'gnome-doc-utils' 'python2-gobject2' 'psiconv')
13 optdepends=('python2-gobject2: for python plugin support'
14             'psiconv: for Psion 5 file support')
15 install=gnumeric-git.install
16 options=('!libtool')
18 _gitroot="git://git.gnome.org/gnumeric"
19 _gitname="gnumeric"
21 build() {
23   cd "$srcdir"
24   msg "Connecting to GIT server...."
26   if [ -d $_gitname ] ; then
27     cd $_gitname && git pull origin
28     msg "The local files are updated."
29   else
30     git clone $_gitroot $_gitname
31   fi
33   msg "GIT checkout done or server timeout"
34   msg "Starting make..."
36   rm -rf "$srcdir/$_gitname-build"
37   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
38   cd "$srcdir/$_gitname-build"
40   ./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
41               --disable-schemas-compile --enable-ssindex
42   make
45 package() {
46   cd "$srcdir/$_gitname-build"
47   make DESTDIR="${pkgdir}" install