# $Id: PKGBUILD 83260 2013-01-28 16:49:47Z stephane $ # Maintainer: Felix Yan # Contributor: Sven-Hendrik Haase # Contributor: Thomas Dziedzic < gostrc at gmail > # Contributor: Mathias Stearn # Contributor: Alec Thomas pkgname=mongodb pkgver=2.2.2 pkgrel=2 pkgdesc='A high-performance, open source, schema-free document-oriented database' arch=('i686' 'x86_64' 'mips64el') url='http://www.mongodb.org' license=('AGPL3') depends=('boost-libs') makedepends=('scons' 'boost' 'libpcap') checkdepends=('python2-pymongo') optdepends=('libpcap: needed for mongosniff') backup=('etc/mongodb.conf') install=mongodb.install source=("http://downloads.mongodb.org/src/mongodb-src-r${pkgver}.tar.gz" 'mongodb.rc' 'mongodb.conf' 'mongodb.service' 'SConscript.client.patch' 'boost1.50.patch') build() { # fucking mongo aint no fun to package export SCONSFLAGS="$MAKEFLAGS" cd mongodb-src-r${pkgver} # fix https://jira.mongodb.org/browse/SERVER-5575 patch -Np1 -i ${srcdir}/SConscript.client.patch # fix boost incompatibility patch -Np1 -i ${srcdir}/boost1.50.patch scons all --use-system-boost # --sharedclient currently fails } <