mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-24 01:01:32 +01:00
36 lines
1.0 KiB
Plaintext
36 lines
1.0 KiB
Plaintext
# Contributor: Grigory Kirillov <txgk@bk.ru>
|
|
# Maintainer: Grigory Kirillov <txgk@bk.ru>
|
|
pkgname=simdjson
|
|
pkgver=1.1.0
|
|
pkgrel=0
|
|
pkgdesc="Parsing gigabytes of JSON per second"
|
|
url="https://simdjson.org"
|
|
arch="all"
|
|
license="Apache-2.0"
|
|
# 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="
|
|
f8718bd039e1a25f0b95880b957c43e6eba6eada6bb7f58cedde37669a46b15b3ff9f4c4ea775e1cf949657642ef0472fa8bac5bdc98882df63e7f292fb5a723 simdjson-1.1.0.tar.gz
|
|
"
|