From e7ae447166a2aa73029b5a461143b6484cbaaf42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9=20=28=D0=A5?= =?UTF-8?q?=D1=80=D0=B0=D0=BC=D1=8B=D1=87=D0=AA=29=20=D0=A5=D1=80=D0=B0?= =?UTF-8?q?=D0=BC=D0=BE=D0=B2?= Date: Sat, 17 May 2025 14:18:52 +0300 Subject: [PATCH] simdjson 1 3.12.3-1 --- libnghttp3/alr.sh | 12 ++++------ simdjson/alr.sh | 58 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+), 7 deletions(-) create mode 100644 simdjson/alr.sh diff --git a/libnghttp3/alr.sh b/libnghttp3/alr.sh index e546280..0a65dd2 100644 --- a/libnghttp3/alr.sh +++ b/libnghttp3/alr.sh @@ -1,6 +1,6 @@ name='libnghttp3' version='1.9.0' -release='1' +release='2' desc='HTTP/3 library written in C.' desc_ru='Библиотека HTTP/3, написанная на C.' homepage='https://github.com/ngtcp2/nghttp3' @@ -14,6 +14,7 @@ conflicts=('libnghttp3' 'libnghttp3-devel') deps=( 'glibc' ) + build_deps=( 'autoconf' 'automake' @@ -23,9 +24,6 @@ build_deps=( sources=("https://github.com/ngtcp2/nghttp3/releases/download/v$version/nghttp3-$version.tar.xz") checksums=('SKIP') -options=(!lto) -backup=('etc/gitea/app.ini') - prepare() { cd nghttp3-$version autoreconf -i @@ -35,12 +33,12 @@ build() { cd nghttp3-$version ./configure \ --prefix=/usr - make + make -j$(($(nproc) - 1)) } check() { cd nghttp3-$version - make check + make check -j$(($(nproc) - 1)) } package() { @@ -51,6 +49,6 @@ package() { files() { printf '"%s" ' ./usr/include/nghttp3/* - echo ./usr/lib64/**/* + printf '"%s" ' ./usr/lib64/**/* echo ./usr/share/licenses/COPYING } \ No newline at end of file diff --git a/simdjson/alr.sh b/simdjson/alr.sh new file mode 100644 index 0000000..4f66e06 --- /dev/null +++ b/simdjson/alr.sh @@ -0,0 +1,58 @@ +name='simdjson' +epoch='1' +version='3.12.3' +release='1' +desc='A C++ library to see how fast we can parse JSON with complete validation.' +desc_ru='Библиотека для парсинга JSON с полной валидацией.' +homepage='https://github.com/simdjson/simdjson' +maintainer='Evgeniy Khramov xpamych@yandex.ru' +maintainer_ru="Евгений Храмов " +architectures=('amd64') +license=('Apache-2.0') + +deps=( + 'libsgcc' +) +build_deps=( + 'cmake' +) + +sources=("https://github.com/simdjson/simdjson/archive/v$version.tar.gz") +checksums=('SKIP') + +build() { + cmake -B build -S "$name-$version" \ + -DBUILD_SHARED_LIBS='On' \ + -DCMAKE_BUILD_TYPE='None' \ + -DCMAKE_INSTALL_PREFIX='/usr' \ + -DCPM_USE_LOCAL_PACKAGES='On' \ + -DSIMDJSON_DEVELOPER_MODE='On' \ + -DSIMDJSON_ALLOW_DOWNLOADS='Off' \ + -Wno-dev + + cmake --build build -j$(($(nproc) - 1)) +} + +check() { + local excluded_tests="" + local ctest_flags=( + --test-dir build + # show the stdout and stderr when the test fails + --output-on-failure + # execute tests in parallel + --parallel $(nproc) + # exclude problematic tests + --exclude-regex "$excluded_tests" + ) + + ctest "${ctest_flags[@]}" +} + +package() { + DESTDIR="$pkgdir/" cmake --install build +} + +files() { + printf '"%s" ' ./usr/lib64/**/* + echo ./usr/include/simdjson.h +} \ No newline at end of file