2 pkgname=${__pkgname}-git
5 pkgdesc="C++ library for working with configuration files"
8 provides=(${__pkgname})
9 replaces=(${__pkgname})
10 depends=('pargen-git' 'scruffy-git')
11 url="http://momentvideo.org/developers.html"
13 __gitroot="git://github.com/erdizz/${__pkgname}.git"
14 __gitname="${__pkgname}"
20 if [ -d $srcdir/${__gitname} ] ; then
21 msg "Git checkout: Updating existing tree"
22 cd ${__gitname} && git checkout ${_commit}
23 msg "Git checkout: Tree has been updated"
25 msg "Git checkout: Retrieving sources"
26 git clone ${__gitroot} && cd ${__gitname} && git checkout ${_commit}
28 msg "Checkout completed"
30 [ -d ${__gitname}-build ] || rm -rf $srcdir/${__gitname}-build
31 git clone $srcdir/${__gitname} $srcdir/${__gitname}-build
32 cd $srcdir/${__gitname}-build
34 ./configure --prefix=/usr
39 cd "$srcdir"/${__gitname}-build
40 make prefix="$pkgdir"/usr install