community/mongodb to 2.6.5-2

This commit is contained in:
Kevin Mihelich 2014-11-08 06:59:46 +00:00
parent 86e553032c
commit e1b5681d52

View file

@ -12,7 +12,7 @@
pkgname=mongodb
pkgver=2.6.5
pkgrel=1
pkgrel=2
pkgdesc='A high-performance, open source, schema-free document-oriented database'
arch=('i686' 'x86_64')
url='http://www.mongodb.org'
@ -29,6 +29,18 @@ source=("http://downloads.mongodb.org/src/mongodb-src-r${pkgver}.tar.gz"
MAKEFLAGS="-j2"
prepare() {
cd mongodb-src-r${pkgver}
# Add missing include required for std::swap()
# https://github.com/mongodb/mongo/commit/2d5d662
if grep -q '#include <algorithm>' src/mongo/shell/linenoise_utf8.h; then
error '<algorithm> include has been fixed upstream; remove this local fix.'
return 1
fi
sed -i '1i #include <algorithm>' src/mongo/shell/linenoise_utf8.h
}
build() {
# fucking mongo aint no fun to package
export SCONSFLAGS="$MAKEFLAGS"