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