# Maintainer: Bert Peters pkgname=simdjson epoch=1 pkgver=3.12.0 pkgrel=1 pkgdesc="A C++ library to see how fast we can parse JSON with complete validation." arch=('x86_64') url="https://github.com/simdjson/simdjson" license=('Apache-2.0') depends=(gcc-libs) makedepends=(cmake) source=("$pkgname-$pkgver.tar.gz::https://github.com/simdjson/simdjson/archive/v$pkgver.tar.gz") sha256sums=('1e5e82f0a34c331c1b0d0c21609791bfe6d6849edfc24983fc241626b433e1c3') build() { cmake -B build -S "$pkgname-$pkgver" \ -DBUILD_SHARED_LIBS='On' \ -DCMAKE_BUILD_TYPE='None' \ -DCMAKE_INSTALL_PREFIX='/usr' \ -Wno-dev cmake --build build } # Running tests requires enabling developer mode, which greatly increases the # required compilation, so we don't. # # Also tests refuse to compile with current GCC # check() { # cd "$pkgname-$pkgver" # make test # } package() { DESTDIR="$pkgdir/" cmake --install build }