1
0
mirror of https://github.com/bertptrs/aur.git synced 2025-12-25 12:40:30 +01:00
Files
aur/simdjson/PKGBUILD
2025-01-12 14:10:07 +01:00

36 lines
957 B
Bash

# Maintainer: Bert Peters <bert@bertptrs.nl>
pkgname=simdjson
epoch=1
pkgver=3.11.5
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=('509bf4880978666f5a6db1eb3d747681e0cc6e0b5bddd94ab0f14a4199d93e18')
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
}