updated on Fri Jan 20 12:03:34 UTC 2012
[aur-mirror.git] / libcppa-git / PKGBUILD
blob436b18c7756eba3774c6af4e25b581ea58762dea
1 pkgname=libcppa-git
2 pkgver=20120103
3 pkgrel=1
4 pkgdesc="C++11 Actors Library"
5 arch=('i686' 'x86_64')
6 url="https://github.com/Neverlord/libcppa"
7 license=('LGPL')
8 depends=('boost-libs')
9 makedepends=('git' 'boost' 'gcc>=4.6')
10 _gitroot="git://github.com/Neverlord/libcppa.git"
11 _gitname="libcppa"
13 build() {
14   cd "$srcdir"
15   msg "Connecting to GIT server...."
17   if [ -d $_gitname ] ; then
18     cd $_gitname && git pull origin
19     msg "The local files are updated."
20   else
21     git clone $_gitroot $_gitname
22   fi
24   msg "GIT checkout done or server timeout"
25   msg "Starting make..."
27   rm -rf "$srcdir/$_gitname-build"
28   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
29   cd "$srcdir/$_gitname-build"
30   autoreconf -i || return 1
31   ./configure --prefix=/usr --with-boost --with-boost-thread || return 1
32   make || return 1
33   make DESTDIR=$pkgdir install || return 1
34   
35