1 # Maintainer: Gagou <gagou@rez-gif.supelec.fr>
5 pkgdesc="A lightweight configuration file library written in C99"
6 url="http://liblcfg.carnivore.it/"
12 _gitroot="git://git.carnivore.it/liblcfg.git"
16 msg "Connecting to GIT server...."
18 if [ -d $_gitname ] ; then
19 cd $_gitname && git pull origin
20 msg "The local files are updated."
22 git clone $_gitroot $_gitname
25 msg "GIT checkout done or server timeout"
26 msg "Starting make..."
28 rm -rf "$srcdir/$_gitname-build"
29 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
30 cd "$srcdir/$_gitname-build/code"
33 ./configure --prefix=/usr || return 1
37 cd "$srcdir/$_gitname-build/code"
38 make DESTDIR=$pkgdir install