2 pkgname=${__pkgname}-git
5 pkgdesc="LibMary is a portability, multithreading, and basic utility library for high-performance network servers written in C++."
8 provides=(${__pkgname})
9 url="http://momentvideo.org/developers.html"
11 __gitroot="git://github.com/erdizz/libmary.git"
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