# Maintainer: George Rawlinson <george@rawlinson.net.nz>

pkgname=wiredtiger
pkgver=10.0.0
pkgrel=1
pkgdesc="High performance NoSQL platform"
arch=('x86_64')
url="https://source.wiredtiger.com"
license=('GPL')
depends=('snappy' 'lz4' 'zlib' 'zstd' 'gperftools')
source=("$pkgname-$pkgver.tar.gz::https://github.com/wiredtiger/wiredtiger/archive/$pkgver.tar.gz")
b2sums=('2b9b85bd7711c114a9b6e3c8cd0db3ce8ba6d08efd3b7b8e39ceff8cd251147c9d9a13942353ec885b7542f732d25946befd814fc046225bfde6ae6d31097c10')

build() {
  cd "$pkgname-$pkgver"
  ./autogen.sh
  ./configure --prefix=/usr \
    --enable-tcmalloc \
    --with-builtins=snappy,lz4,zlib,zstd

  # FIXME plain `make` does a bunch of tests ... find the invocation that *only* builds
  #make
}

package() {
	cd "$pkgname-$pkgver"
  make DESTDIR="$pkgdir" install
}