mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-19 00:21:40 +00:00
community/mongodb to 2.6.5-2
This commit is contained in:
parent
86e553032c
commit
e1b5681d52
1 changed files with 13 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue