updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / mycpp-git / PKGBUILD
blob4b0ed6b1eae463f1665d9e9d94353751582d757a
1 __pkgname=mycpp
2 pkgname=${__pkgname}-git
3 pkgver=20111125
4 pkgrel=1
5 pkgdesc="MyNC C++ helper library"
6 arch=('i686' 'x86_64')
7 license=('GPL')
8 provides=(${__pkgname}=1.0)
9 url="http://momentvideo.org/developers.html"
11 __gitroot="git://github.com/erdizz/${__pkgname}.git"
12 __gitname="${__pkgname}"
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         }