# Maintainer: Philipp Andronov # Contributor: Marc Vertes pkgname=wiredtiger mongodb_version=3.2.10 pkgver=2.8.1.$mongodb_version pkgrel=0 pkgdesc="High performance, scalable, production quality, NoSQL, Open Source extensible platform for data management" url="http://www.wiredtiger.com" arch="x86_64" license="(GPLv2 or GPLv3) and MIT and BSD" depends="" depends_dev="autoconf automake libtool linux-headers" makedepends="$depends_dev lz4-dev zlib-dev snappy-dev" options="" subpackages="$pkgname-doc $pkgname-dev $pkgname-libs" install="" source="$pkgname-$pkgver-mongodb-$mongodb_version.tar.gz::https://github.com/wiredtiger/wiredtiger/archive/mongodb-$mongodb_version.tar.gz makemake-remove-libtool-version.patch 10-fix-code-generator.patch " _builddir="$srcdir"/$pkgname-mongodb-$mongodb_version prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done sh autogen.sh || return 1 } build() { cd "$_builddir" ./configure --prefix=/usr \ --disable-static \ --enable-lz4 \ --with-builtins=zlib,snappy \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } md5sums="3163a1ded989dc5b7b6981d5c4009389 wiredtiger-2.8.1.3.2.10-mongodb-3.2.10.tar.gz 42bfd2bd20c06750704e743e47bc8cfe makemake-remove-libtool-version.patch a2d708fbb72b47aa94fb424e4b679484 10-fix-code-generator.patch" sha256sums="0e9a9a794a98c1a0fe69872ad7697b00fe2cf36433948903eabd7414e2ec5f04 wiredtiger-2.8.1.3.2.10-mongodb-3.2.10.tar.gz 645916bfa2d270f21cdc772a6de9e1a5b79e2c89f8b2d3050eb7e9f2a11cb8cf makemake-remove-libtool-version.patch 65fc3b0885ff2e2ed30b7eb9917671fd7acdbb63978d565e17d328c2da214326 10-fix-code-generator.patch" sha512sums="c18831d025ce62084dd6773ebcf2fbc709220bcdb7ace30e3cec58d52be1414f10ac477cbab1b9ccce62df521c6ad2742570dd90b37ae5d92f7fc1ce81d7c35c wiredtiger-2.8.1.3.2.10-mongodb-3.2.10.tar.gz 9eb56a81cbf0b8c695ab86d5c6aa319aee8e6ffc4d4ac94c5ecb17a639cab352f83fdf15db467d3f2961cd05fd00c2b96c3cc357daa32972dd07fb3dfa95852f makemake-remove-libtool-version.patch a24360c18a8dd677a1942fc66ecdfdb8bc514af6de3e19be822293fdc83c051c43f3270f91eaa4524f30b5bc82c6ecad5162ce5b3f5ff470bab4e1a5d9eb79ec 10-fix-code-generator.patch"