PKGBUILDs/community/wiredtiger/PKGBUILD
2017-12-27 13:49:10 +00:00

48 lines
1.3 KiB
Bash

# $Id$
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - build with armv8-a CRC extensions
buildarch=8
pkgname=wiredtiger
pkgver=2.9.3.20171205
_commit=d8f244717b6338063e0c20628bfa4bb65a821e0c
pkgrel=2
pkgdesc="High performance, scalable, production quality, NoSQL, Open Source extensible platform for data management"
arch=('x86_64')
url="http://source.wiredtiger.com/"
license=('GPL')
depends=('snappy' 'lz4' 'zlib' 'gperftools')
source=("$pkgname-$_commit.tar.gz::https://github.com/wiredtiger/wiredtiger/archive/$_commit.tar.gz")
sha512sums=('872356c0036102370e680238b4cbafc90d0eb16549fc6d09158a79d16dd8d6eef7f1e25eff8239476d92ad14d75ef19d78bd8b1ac5a0dc5bfea9a98326107c0a')
prepare() {
mv wiredtiger-{$_commit,$pkgver}
}
build() {
cd wiredtiger-$pkgver
CFLAGS=`echo $CFLAGS | sed -e 's/armv8-a/armv8-a+crc/'` && CXXFLAGS="$CFLAGS"
./autogen.sh
./configure --prefix=/usr \
--enable-leveldb \
--enable-lz4 \
--enable-tcmalloc \
--enable-verbose \
--with-builtins=snappy,zlib
make
}
check() {
cd wiredtiger-$pkgver
make test
}
package() {
cd wiredtiger-$pkgver
make DESTDIR="$pkgdir" install
}