updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / flux-git / PKGBUILD
blob12a3cbb241b1566228fa9f978c8c703baa293de4
1 # Maintainer: kennytm <kennytm@gmail.com>
2 # Contributor: kennytm <kennytm@gmail.com>
3 pkgname=flux-git
4 pkgver=20111207
5 pkgrel=1
6 pkgdesc="flux is an interface description language used by DirectFB"
7 arch=('i686' 'x86_64')
8 url='http://git.directfb.org/?p=core/flux.git;a=summary'
9 license=('MIT')
10 makedepends=('git' 'gcc' 'autoconf')
11 depends=()
12 provides=('flux=1.1.1')
13 conflicts=('flux')
15 _gitroot='git://git.directfb.org/git/directfb/core/flux.git'
16 _gitname='flux'
18 build() {
19     msg "Connecting to git server..."
20     if [ -d $_gitname ]; then
21         cd $_gitname && git pull origin
22         msg "The local files are updated."
23     else
24         git clone --depth=1 $_gitroot $_gitname
25     fi
26     msg "git checkout done or server timeout"
28     rm -rf "$srcdir/$_gitname-build"
29     mkdir "$srcdir/$_gitname-build"
30     cd "$srcdir/$_gitname-build"
31     autoreconf -fi "../$_gitname"
32     "../$_gitname/configure" --prefix=/usr
33     make
36 package() {
37     cd "$srcdir/$_gitname-build"
38     make DESTDIR="$pkgdir/" install