updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / mongodb-bin / PKGBUILD
blobba9b7952d9b4dd19ae21950ca62a830bb852eda5
1 #Maintainer: Juho Rutila <juho.rutila@gmail.com>
2 # Copied from mongodb
3 pkgname=mongodb-bin
4 pkgver=2.0.0
5 pkgrel=1
6 pkgdesc="A high-performance, open source, schema-free document-oriented database."
7 arch=('i686' 'x86_64')
8 url="http://www.mongodb.org"
9 license=('AGPL')
10 depends=(boost-libs spidermonkey-1.7 pcre)
11 optdepends=('libpcap: needed for mongosniff')
12 provides=('mongodb')
13 backup=('etc/mongodb.conf')
14 source=("http://fastdl.mongodb.org/linux/mongodb-linux-$CARCH-${pkgver}.tgz"
15         "mongodb.rc"
16         "mongodb.conf")
17 md5sums=('7fc6336e6708f8ce9febe6fb949bb176'
18          'ebc707d3348c1f908166847040153620'
19          '9e0ea3f96732bb7811f0b64dace56440')
20 [ "$CARCH" = "i686" ] &&
21 md5sums=('573d8da35806fa3fc5db3305a644852e'
22          'ebc707d3348c1f908166847040153620'
23          '9e0ea3f96732bb7811f0b64dace56440')
24 install="mongodb.install"
26 package() {
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" ]
34     then
35         mv "$pkgdir/usr/lib64" "$pkgdir/usr/lib"
36     fi