2 pkgname=${__pkgname}-git
5 pkgdesc="MyNC C++ helper library"
8 provides=(${__pkgname}=1.0)
9 url="http://momentvideo.org/developers.html"
11 __gitroot="git://github.com/erdizz/${__pkgname}.git"
12 __gitname="${__pkgname}"
18 if [ -d $srcdir/${__gitname} ] ; then
19 msg "Git checkout: Updating existing tree"
20 cd ${__gitname} && git checkout ${_commit}
21 msg "Git checkout: Tree has been updated"
23 msg "Git checkout: Retrieving sources"
24 git clone ${__gitroot} && cd ${__gitname} && git checkout ${_commit}
26 msg "Checkout completed"
28 [ -d ${__gitname}-build ] || rm -rf $srcdir/${__gitname}-build
29 git clone $srcdir/${__gitname} $srcdir/${__gitname}-build
30 cd $srcdir/${__gitname}-build
32 ./configure --prefix=/usr
37 cd "$srcdir"/${__gitname}-build
38 make prefix="$pkgdir"/usr install