1 # Contributor: Kun Wang <ifreedom.dot.cn.at.gmail.dot.com>
6 pkgdesc="Lua driver for mongodb"
9 url="https://github.com/moai/luamongo"
11 depends=('boost' 'mongodb')
18 md5sums=('009aa158578ce80c9b88c8aeb97607ef')
20 _gitroot="git://github.com/moai/luamongo.git"
22 _build_dir="$srcdir/$_gitname-build"
27 if [ $NOEXTRACT -eq 0 ]; then
28 msg "Connecting to GIT server...."
29 if [ -d $_gitname ] ; then
30 cd $_gitname && git pull origin
31 msg "The local files are updated."
34 git clone $_gitroot $_gitname
37 msg "GIT checkout done or server timeout"
41 git clone "$_gitname" "$_build_dir"
49 patch -p1 <../diff.patch
56 mkdir -p "$pkgdir/usr/lib/lua/5.1"
57 cp mongo.so "$pkgdir/usr/lib/lua/5.1/"