1 # Contributor: Latchezar Tzvetkoff <root@pfoo.org>
6 pkgdesc='MongoDB is a high-performance, open source, schema-free document-oriented database.'
8 url='http://www.mongodb.org/'
10 depends=('boost' 'spidermonkey' 'pcre' 'xulrunner')
11 makedepends=('git' 'scons')
13 install='mongodb.install'
16 md5sums=('4bebe428216b1c4792fd1b7941102b7b'
17 '13d59a1cb6fa9e54814d6d98781341dc')
19 _gitroot='http://github.com/mongodb/mongo.git'
27 msg "Connecting to GIT server...."
29 if [ -d $_gitname ] ; then
30 cd $_gitname && git pull origin
31 msg "The local files are updated."
33 git clone $_gitroot $_gitname
36 msg "GIT checkout done or server timeout"
37 msg "Starting make..."
39 rm -rf "$srcdir/$_gitname-build"
40 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
41 cd "$srcdir/$_gitname-build"
49 sed -i 's|lib64|lib|g' SConstruct
52 scons install --prefix="$startdir/pkg/usr/"
53 install -Dm 755 "$startdir/mongodb.rc" "$startdir/pkg/etc/rc.d/mongodb"
54 install -Dm 755 "$startdir/mongodb.rc.conf" "$startdir/pkg/etc/conf.d/mongodb"
55 install -dm 700 "$startdir/pkg/var/state/mongodb"