updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / grisbi-git / PKGBUILD
blobde9677296439c1b6c3c7f26e32dd45be615352f5
1 # Contributor: MaĆ«l Leclair <mael.leclair@gmail.com>
2 pkgname=grisbi-git
3 pkgver=20101128
4 pkgrel=1
5 pkgdesc="Personal financial management program"
6 arch=('any')
7 url="http://www.grisbi.org"
8 license=('GPL')
9 depends=('gtk2' 'hicolor-icon-theme')
10 optdepends=('libofx: for OFX support')
11 makedepends=('git')
12 provides=('grisbi')
13 conflicts=('grisbi')
14 replaces=('grisbi')
15 options=(!libtool)
16 install=(grisbi.install)
18 _gitroot="git://grisbi.git.sourceforge.net/gitroot/grisbi/grisbi"
19 _gitname="grisbi"
21 build() {
22   cd "$srcdir"
23   msg "Connecting to GIT server...."
25   if [ -d $_gitname ] ; then
26     cd $_gitname && git pull --rebase
27     msg "The local files are updated."
28   else
29     git clone $_gitroot
30   fi
32   msg "GIT checkout done or server timeout"
33   msg "Starting make..."
35   rm -rf "$srcdir/$_gitname-build"
36   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
37   cd "$srcdir/$_gitname-build"
39   #build here
40   ./autogen.sh
41   ./configure --prefix=/usr
42   make || return 1
43   make DESTDIR="$pkgdir/" install