From 6b2ce16762879ccc75ab1975089d56dbc4a5ea73 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=D0=A5=D1=80?= =?UTF-8?q?=D0=B0=D0=BC=D0=BE=D0=B2?= Date: Sun, 9 Jun 2024 16:01:59 +0300 Subject: [PATCH] nlohmann-json --- nlohmann-json/alr.sh | 34 ++++++++++++++++++++++++++++++++++ obs-studio/alr.sh | 1 + 2 files changed, 35 insertions(+) create mode 100644 nlohmann-json/alr.sh diff --git a/nlohmann-json/alr.sh b/nlohmann-json/alr.sh new file mode 100644 index 0000000..7e68783 --- /dev/null +++ b/nlohmann-json/alr.sh @@ -0,0 +1,34 @@ +name='nlohmann-json' +version='3.11.3' +release='1' +desc='Header-only JSON library for Modern C++' +homepage='https://github.com/nlohmann/json' +maintainer="Евгений Храмов " +architectures=('amd64') +licenses='MIT' +provides=('nlohmann-json') +conflicts=('nlohmann-json') + +build_deps_rosa=('cmake' 'git') +sources=("git+https://github.com/nlohmann/json.git#tag=v${version}") +checksums=('SKIP') + +build() { + cd "${srcdir}" + mkdir build + cd ./build + cmake ../json -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTING=OFF + make -j$(nproc) +} + +check() { + cd "${srcdir}/build" + cmake ../json -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTING=ON + make -j$(nproc) + ctest --output-on-failure +} + +package() { + cd "${srcdir}/build" + make "DESTDIR=${pkgdir}" install +} diff --git a/obs-studio/alr.sh b/obs-studio/alr.sh index b44fbdc..0afd53f 100755 --- a/obs-studio/alr.sh +++ b/obs-studio/alr.sh @@ -55,6 +55,7 @@ build_deps_rosa=('lib64alsa-oss-devel.x86_64' 'x264-devel') build_deps_redos=('alsa-plugins-oss' 'cmake' + ) sources=("https://cdn-fastly.obsproject.com/downloads/cef_binary_5060_linux64.tar.bz2"