updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / goffice-git / PKGBUILD
blob970f430b435a9061f4a0c90caec270d5920d98c0
1 # Maintainer: moostik <mooostik_at_gmail.com>
3 pkgname=goffice-git
4 pkgver=20120105
5 pkgrel=1
6 pkgdesc="A library of document-centric objects and utilities built on top of GLib and Gtk+ (Git release)"
7 arch=('i686' 'x86_64')
8 url="http://www.gnome.org"
9 license=('GPL')
10 options=('!libtool')
11 conflicts=('goffice')
12 depends=('gtk3' 'libgsf' 'lasem-devel>=0.3.1' 'libspectre')
13 makedepends=('intltool' 'gtk-doc')
15 _gitroot="git://git.gnome.org/goffice"
16 _gitname="goffice-git"
18 build() {
20   cd "$srcdir"
21   msg "Connecting to GIT server...."
23   if [ -d $_gitname ] ; then
24     cd $_gitname && git pull origin
25     msg "The local files are updated."
26   else
27     git clone $_gitroot $_gitname
28   fi
30   msg "GIT checkout done or server timeout"
31   msg "Starting make..."
33   rm -rf "$srcdir/$_gitname-build"
34   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
35   cd "$srcdir/$_gitname-build"
37   ./autogen.sh --prefix=/usr --sysconfdir=/etc \
38       --localstatedir=/var --disable-static \
39       --with-lasem
40   make
43 package() {
44   cd "$srcdir/$_gitname-build"
45   make DESTDIR="${pkgdir}" install