mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-31 14:22:14 +01:00
36 lines
1.0 KiB
Plaintext
36 lines
1.0 KiB
Plaintext
# Contributor: Grigory Kirillov <txgk@bk.ru>
|
|
# Maintainer: Simon Zeni <simon@bl4ckb0ne.ca>
|
|
pkgname=simdjson
|
|
pkgver=3.2.1
|
|
pkgrel=2
|
|
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="
|
|
eeac785c7868362f51f3fb87cb4e0cfc77b2c4e3767afbe1d22df87f16a3cb4af1dc27a1df5ba3c139cb0a3053bc30afcdcb31515ce4e757c309ed2c0f3f507e simdjson-3.2.1.tar.gz
|
|
"
|