updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / msgpack-git / PKGBUILD
blob0c76799d32bcac349b3d43db4ea34d5cfa03e258
1 #Contributor: Tom Burdick <thomas.burdick@gmail.com> 
3 pkgname=msgpack-git
4 pkgver=20100624
5 pkgrel=1
6 pkgdesc="MessagePack fast streaming serialization libraries for C and C++"
7 arch=('i686' 'x86_64')
8 url="http://github.com/msgpack/msgpack/"
9 license=('mit')
10 depends=()
11 makedepends=('git' 'gcc' 'make')
12 provides=('msgpack', 'msgpack-git')
13 conflicts=('msgpack')
15 _gitroot="git://github.com/msgpack/msgpack.git"
16 _gitname="msgpack"
18 build() {
19   cd ${srcdir}
20   msg "Connecting to github.com GIT server...."
21   
22   if [ -d $_gitname ] ; then
23     cd $_gitname && git pull origin
24     msg "The local files are updated."
25   else
26     git clone $_gitroot
27   fi
28   
29   msg "GIT checkout done or server timeout"
30   
31   msg "Creating build directory"
32   if [ -d "${srcdir}/$_gitname-build" ]; then rm -rf "${srcdir}/$_gitname-build"; fi
33   cp -R "${srcdir}/$_gitname" "${srcdir}/$_gitname-build"
34   
35   cd ${srcdir}/$_gitname-build/cpp
37   msg "Starting make..."
38   #msg "Applying patches ..."
39   #patch -Np2 -i "${srcdir}/../makefile.patch" || return 1
41   ./bootstrap
42   ./configure --prefix=/usr
43   make || return 1
44   make DESTDIR=${pkgdir} install || return 1
45   #chmod -x ${pkgdir}/usr/include/* || return 1