updated on Mon Jan 16 12:07:49 UTC 2012
[aur-mirror.git] / sqlheavy-git / PKGBUILD
blobf027f8c25ddb871c253b649eff422d02cb408e10
1 pkgname=sqlheavy-git
2 pkgver=20110523
3 pkgrel=1
4 pkgdesc="A wrapper on top of SQLite with a GObject-based interface"
5 url="https://code.google.com/p/sqlheavy/"
6 arch=('x86_64' 'i686')
7 license=('LGPL')
8 depends=('sqlite3')
9 makedepends=('vala')
11 _gitroot="git://gitorious.org/sqlheavy/sqlheavy.git"
12 _gitname="sqlheavy"
14 build() {
15   cd ${srcdir}
16   msg "Connecting to GIT server...."
18   if [ -d ${_gitname} ] ; then
19     cd ${_gitname} && git pull origin
20         msg "The local files are updated."
21   else
22     git clone ${_gitroot} ${_gitname}
23   fi
24   
25   msg "GIT checkout done or server timeout"
26   msg "Starting make..."
27   
28   rm -rf "$srcdir/$_gitname-build"
29   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
30   cd "$srcdir/$_gitname-build"
32   ./autogen.sh
33   ./configure --prefix=/usr
34   make
35
36 package() {
37   cd "$srcdir/$_gitname-build"
39   make DESTDIR="${pkgdir}" install