# $Id$ # Maintainer: Felix Yan # Contributor: Sven-Hendrik Haase # Contributor: Thomas Dziedzic < gostrc at gmail > # Contributor: Mathias Stearn # Contributor: Alec Thomas # ALARM: Kevin Mihelich # - build -j3 (RAM constraints) # - use system v8 # - ARM patches pkgname=mongodb pkgver=2.4.9 pkgrel=1 pkgdesc='A high-performance, open source, schema-free document-oriented database' arch=('i686' 'x86_64') url='http://www.mongodb.org' license=('AGPL3') depends=('boost-libs' 'pcre' 'snappy' 'openssl' 'gperftools' 'v8') makedepends=('scons' 'boost' 'readline' 'ncurses' 'libpcap') # 'cyrus-sasl') 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.conf' 'mongodb.service' 'removeWerror.patch' '0005-ARM-support-for-ASM-operations-in-MongoDB.patch' '0006-Fix-ARM-alignment-problems.patch') MAKEFLAGS="-j3" build() { # fucking mongo aint no fun to package export SCONSFLAGS="$MAKEFLAGS" cd mongodb-src-r${pkgver} # failed to build with -Werror since 2.4.0 patch -Np1 -i "$srcdir/removeWerror.patch" patch -Np1 -i ../0005-ARM-support-for-ASM-operations-in-MongoDB.patch patch -Np1 -i ../0006-Fix-ARM-alignment-problems.patch scons all \ --use-system-boost \ --use-system-pcre \ --use-system-snappy \ --use-system-tcmalloc \ --ssl \ --sharedclient \ --use-system-v8 # --use-sasl-client } <