updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / libmary-git / PKGBUILD
blob0b22da87b376e67c54822e987547af59f48bde45
1 __pkgname=libmary
2 pkgname=${__pkgname}-git
3 pkgver=20111125
4 pkgrel=1
5 pkgdesc="LibMary is a portability, multithreading, and basic utility library for high-performance network servers written in C++."
6 arch=('i686' 'x86_64')
7 license=('GPL')
8 provides=(${__pkgname})
9 url="http://momentvideo.org/developers.html"
11 __gitroot="git://github.com/erdizz/libmary.git"
12 __gitname="libmary"
14 build() {
15           cd $srcdir
17  ## Git checkout
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"
22   else
23     msg "Git checkout:  Retrieving sources"
24     git clone ${__gitroot} && cd ${__gitname} && git checkout ${_commit} 
25   fi
26   msg "Checkout completed"
27   
28   [ -d ${__gitname}-build ] || rm -rf $srcdir/${__gitname}-build
29   git clone $srcdir/${__gitname} $srcdir/${__gitname}-build
30   cd $srcdir/${__gitname}-build
31         ./autogen.sh
32         ./configure --prefix=/usr
33         make
34         }
36 package() {
37         cd "$srcdir"/${__gitname}-build
38         make prefix="$pkgdir"/usr install
39         }