aports/main/simdjson/APKBUILD
2025-02-08 17:07:19 +00:00

35 lines
1 KiB
Text

# Contributor: Grigory Kirillov <txgk@bk.ru>
# Maintainer: Simon Zeni <simon@bl4ckb0ne.ca>
pkgname=simdjson
pkgver=3.12.0
pkgrel=0
pkgdesc="Parsing gigabytes of JSON per second"
url="https://simdjson.org/"
arch="all"
license="Apache-2.0 OR MIT"
# tests take a very long time to compile and require downloading other JSON parsers
options="!check"
makedepends="cmake samurai"
subpackages="$pkgname-static $pkgname-dev"
source="https://github.com/simdjson/simdjson/archive/v$pkgver/simdjson-$pkgver.tar.gz"
build() {
cmake -B builddir -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=ON
cmake -B builddir-static -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release
cmake --build builddir
cmake --build builddir-static
}
package() {
DESTDIR="$pkgdir" cmake --install builddir
DESTDIR="$pkgdir" cmake --install builddir-static
}
sha512sums="
c28a235b252d520cf45defab8d64088db71aa8f3fa75746db237cbd8145054b4fb6b8c2783b0a9fefaf8a8f860feb2bd0b2f5ce4303eed8ceca3725d79af6c13 simdjson-3.12.0.tar.gz
"