1 #Contributor: Tom Burdick <thomas.burdick@gmail.com>
6 pkgdesc="MessagePack fast streaming serialization libraries for C and C++"
8 url="http://github.com/msgpack/msgpack/"
11 makedepends=('git' 'gcc' 'make')
12 provides=('msgpack', 'msgpack-git')
15 _gitroot="git://github.com/msgpack/msgpack.git"
20 msg "Connecting to github.com GIT server...."
22 if [ -d $_gitname ] ; then
23 cd $_gitname && git pull origin
24 msg "The local files are updated."
29 msg "GIT checkout done or server timeout"
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"
35 cd ${srcdir}/$_gitname-build/cpp
37 msg "Starting make..."
38 #msg "Applying patches ..."
39 #patch -Np2 -i "${srcdir}/../makefile.patch" || return 1
42 ./configure --prefix=/usr
44 make DESTDIR=${pkgdir} install || return 1
45 #chmod -x ${pkgdir}/usr/include/* || return 1