1
0
mirror of https://github.com/bertptrs/aur.git synced 2025-12-25 20:40:32 +01:00
Files
aur/simdjson/PKGBUILD
Bert Peters c374a1b605 upgpkg: simdjson 1:3.8.0-2
Fix building with correct flags, license
2024-03-28 23:09:22 +01:00

36 lines
950 B
Bash

# Maintainer: Bert Peters <bert@bertptrs.nl>
pkgname=simdjson
epoch=1
pkgver=3.8.0
pkgrel=2
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=('e28e3f46f0012d405b67de6c0a75e8d8c9a612b0548cb59687822337d73ca78b')
build() {
cmake -B build -S "$pkgname-$pkgver" \
-DBUILD_SHARED_LIBS='On' \
-DCMAKE_BUILD_TYPE='None' \
-DCMAKE_INSTALL_PREFIX='/usr' \
-Wno-dev
make -C 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() {
make -C build DESTDIR="$pkgdir/" install
}