updated on Sat Jan 21 16:18:39 UTC 2012
[aur-mirror.git] / mconfig-git / PKGBUILD
blob4656f12a6dafc6bf872bc58b397a921a68dc7c20
1 __pkgname=mconfig
2 pkgname=${__pkgname}-git
3 pkgver=20111125
4 pkgrel=1
5 pkgdesc="C++ library for working with configuration files"
6 arch=('i686' 'x86_64')
7 license=('GPL')
8 provides=(${__pkgname})
9 replaces=(${__pkgname})
10 depends=('pargen-git'  'scruffy-git')
11 url="http://momentvideo.org/developers.html"
13 __gitroot="git://github.com/erdizz/${__pkgname}.git"
14 __gitname="${__pkgname}"
16 build() {
17           cd $srcdir
19  ## Git checkout
20   if [ -d $srcdir/${__gitname} ] ; then
21     msg "Git checkout:  Updating existing tree"
22     cd ${__gitname} && git checkout ${_commit}
23     msg "Git checkout:  Tree has been updated"
24   else
25     msg "Git checkout:  Retrieving sources"
26     git clone ${__gitroot} && cd ${__gitname} && git checkout ${_commit} 
27   fi
28   msg "Checkout completed"
29   
30   [ -d ${__gitname}-build ] || rm -rf $srcdir/${__gitname}-build
31   git clone $srcdir/${__gitname} $srcdir/${__gitname}-build
32   cd $srcdir/${__gitname}-build
33         ./autogen.sh
34         ./configure --prefix=/usr
35         make
36         }
38 package() {
39         cd "$srcdir"/${__gitname}-build
40         make prefix="$pkgdir"/usr install
41         }