updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / lgi-git / PKGBUILD
blob90530e4d929cff91807db5d9def40a22e1cd8641
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
3 _pkg=lgi
4 pkgname=$_pkg-git
5 pkgver=20110509
6 pkgrel=1
7 pkgdesc="Lua binadings for gnome/gobject using gobject-introspection library."
8 arch=(i686 x86_64)
9 url="http://gitorious.org/lgi"
10 license=('GPL')
11 depends=('lua' 'gobject-introspection')
12 makedepends=('git' 'python2')
13 provides=("$_pkg")
14 conflicts=("_pkg")
16 _gitroot="git://gitorious.org/lgi/lgi.git"
17 _gitname="$_pkg"
19 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   #
38   # BUILD HERE
39   #
41   python2 ./waf configure --prefix=/usr
42   python2 ./waf
45 package() {
46   cd "$srcdir/$_gitname-build"
48   python2 ./waf install --destdir="$pkgdir/"
49