2 pkgname=${__pkgname}-git
5 pkgdesc="Pargen is a parser generator with hooks necessary to build a standard-compliant C++ parser"
8 provides=(${__pkgname})
9 depends=('mycpp-git' 'mylang-git')
10 url="http://momentvideo.org/developers.html"
12 __gitroot="git://github.com/erdizz/${__pkgname}.git"
13 __gitname="${__pkgname}"
19 if [ -d $srcdir/${__gitname} ] ; then
20 msg "Git checkout: Updating existing tree"
21 cd ${__gitname} && git checkout ${_commit}
22 msg "Git checkout: Tree has been updated"
24 msg "Git checkout: Retrieving sources"
25 git clone ${__gitroot} && cd ${__gitname} && git checkout ${_commit}
27 msg "Checkout completed"
29 [ -d ${__gitname}-build ] || rm -rf $srcdir/${__gitname}-build
30 git clone $srcdir/${__gitname} $srcdir/${__gitname}-build
31 cd $srcdir/${__gitname}-build
33 ./configure --prefix=/usr
38 cd "$srcdir"/${__gitname}-build
39 make prefix="$pkgdir"/usr install