1 #Maintainer: Juho Rutila <juho.rutila@gmail.com>
6 pkgdesc="A high-performance, open source, schema-free document-oriented database."
8 url="http://www.mongodb.org"
10 depends=(boost-libs spidermonkey-1.7 pcre)
11 optdepends=('libpcap: needed for mongosniff')
13 backup=('etc/mongodb.conf')
14 source=("http://fastdl.mongodb.org/linux/mongodb-linux-$CARCH-${pkgver}.tgz"
17 md5sums=('7fc6336e6708f8ce9febe6fb949bb176'
18 'ebc707d3348c1f908166847040153620'
19 '9e0ea3f96732bb7811f0b64dace56440')
20 [ "$CARCH" = "i686" ] &&
21 md5sums=('573d8da35806fa3fc5db3305a644852e'
22 'ebc707d3348c1f908166847040153620'
23 '9e0ea3f96732bb7811f0b64dace56440')
24 install="mongodb.install"
27 install -d "$pkgdir/usr/bin"
28 install -D $srcdir/mongodb-linux-$CARCH-${pkgver}/bin/* $pkgdir/usr/bin
29 install -Dm 755 "$startdir/mongodb.rc" "$pkgdir/etc/rc.d/mongodb"
30 install -Dm 644 "$startdir/mongodb.conf" "$pkgdir/etc/mongodb.conf"
31 install -dm 700 "$pkgdir/var/state/mongodb"
33 if [ -d "$pkgdir/usr/lib64" ]
35 mv "$pkgdir/usr/lib64" "$pkgdir/usr/lib"