updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / moment-git / PKGBUILD
blob4df31ac375779b5903dcf6aaadb72df4ff61e9b2
1 __pkgname=moment
2 pkgname=${__pkgname}-git
3 pkgver=20111125
4 pkgrel=1
5 url="http://momentvideo.org/"
6 pkgdesc="Moment Video Server lets you organize live video streaming on the Internet with ease."
7 arch=('i686' 'x86_64')
8 license=('GPL')
9 depends=('libmary-git' 'mconfig-git' 'ctemplate')
11 __gitroot="git://github.com/erdizz/moment.git"
12 __gitname="moment"
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         }