PKGBUILDs/community/wiredtiger/PKGBUILD
2018-06-07 12:38:59 +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=3.0.0.20180501
_commit=739995ca1e8f396b5de112360f4a8d3e9867fc0b
pkgrel=1
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=('bf19eea5b6eafb1e6accddd81caca7fc8857e5b16a99d92e8db7cf17ad6d36077fc77138f6bfccfffd9d45fa773e15346ee1565f293e72e7098dec71499b8bf1')
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
}