mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-19 05:36:38 +02:00
35 lines
1 KiB
Text
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
|
|
"
|