From 31c6b01f5ae1e70a1efc5e05184bc6e1ed934b19 Mon Sep 17 00:00:00 2001 From: Mihail Ivanchev Date: Mon, 29 Apr 2024 14:38:42 +0200 Subject: [PATCH] New package: Criterion-2.4.2 --- srcpkgs/Criterion-devel | 1 + srcpkgs/Criterion/patches/wraps.patch | 38 ++++++++++++++++++++ srcpkgs/Criterion/template | 50 +++++++++++++++++++++++++++ 3 files changed, 89 insertions(+) create mode 120000 srcpkgs/Criterion-devel create mode 100644 srcpkgs/Criterion/patches/wraps.patch create mode 100644 srcpkgs/Criterion/template diff --git a/srcpkgs/Criterion-devel b/srcpkgs/Criterion-devel new file mode 120000 index 00000000000000..f21a0adfe892f3 --- /dev/null +++ b/srcpkgs/Criterion-devel @@ -0,0 +1 @@ +Criterion \ No newline at end of file diff --git a/srcpkgs/Criterion/patches/wraps.patch b/srcpkgs/Criterion/patches/wraps.patch new file mode 100644 index 00000000000000..ba6bc0a3f7379b --- /dev/null +++ b/srcpkgs/Criterion/patches/wraps.patch @@ -0,0 +1,38 @@ +diff --git a/subprojects/debugbreak.wrap b/subprojects/debugbreak.wrap +index e8fd6cc..a46a315 100644 +--- a/subprojects/debugbreak.wrap ++++ b/subprojects/debugbreak.wrap +@@ -1,8 +1,5 @@ +-[wrap-git] +-url = https://github.com/MrAnno/debugbreak.git +-revision = 83bf7e933311b88613cbaadeced9c2e2c811054a ++[wrap-file] + directory = debugbreak +-patch_directory = debugbreak + + [provide] + debugbreak = debugbreak_dep +diff --git a/subprojects/klib.wrap b/subprojects/klib.wrap +index 9c9cc7a..446f4da 100644 +--- a/subprojects/klib.wrap ++++ b/subprojects/klib.wrap +@@ -1,8 +1,5 @@ +-[wrap-git] +-url = https://github.com/attractivechaos/klib.git +-revision = cdb7e9236dc47abf8da7ebd702cc6f7f21f0c502 ++[wrap-file] + directory = klib +-patch_directory = klib + + [provide] + klib = klib_dep +diff --git a/subprojects/nanopb-cmake.wrap b/subprojects/nanopb-cmake.wrap +index 0e4d1fa..960ab61 100644 +--- a/subprojects/nanopb-cmake.wrap ++++ b/subprojects/nanopb-cmake.wrap +@@ -1,4 +1,2 @@ +-[wrap-git] ++[wrap-file] + directory = nanopb +-url = https://github.com/nanopb/nanopb +-revision = nanopb-0.4.7 diff --git a/srcpkgs/Criterion/template b/srcpkgs/Criterion/template new file mode 100644 index 00000000000000..db1f6ef842d779 --- /dev/null +++ b/srcpkgs/Criterion/template @@ -0,0 +1,50 @@ +# Template file for 'Criterion' +pkgname=Criterion +version=2.4.2 +revision=1 +build_style=meson +configure_args="-Dsamples=false" +hostmakedepends="pkg-config cmake" +makedepends="libffi-devel libgit2-devel nanomsg-devel gettext-devel" +short_desc="Cross-platform C and C++ unit testing framework for the 21st century" +maintainer="Mihail Ivanchev " +license="MIT" +homepage="https://github.com/Snaipe/Criterion" +distfiles="https://github.com/Snaipe/Criterion/archive/refs/tags/v${version}.tar.gz + https://github.com/MrAnno/debugbreak/archive/83bf7e933311b88613cbaadeced9c2e2c811054a.tar.gz>debugbreak.tar.gz + https://github.com/attractivechaos/klib/archive/cdb7e9236dc47abf8da7ebd702cc6f7f21f0c502.tar.gz>klib.tar.gz + https://github.com/nanopb/nanopb/archive/refs/tags/0.4.7.tar.gz>nanopb.tar.gz + https://github.com/Snaipe/BoxFort/archive/c91d7181734ab2fd6d1299e8aa927297f0ddb754.tar.gz>BoxFort.tar.gz" +checksum="83e1a39c8c519fbef0d64057dc61c8100b3a5741595788c9f094bba2eeeef0df + 9de3bb0d23f43a6f019f186261a21f3f709c5717c61539ab655b7051ae58ee51 + 1291ba5df7badf7f68188b4a622a7e694de61f8a01adbed9099da01df81f9c9a + e1d89b166367a3c42d42311bdc2ed57ff78f86aede9a66828516e45490d48c81 + e48cdc4973a20d5efd68c6a00b42df4d664953bb8778ca5d9b7e9e2b1a3cd527" +skip_extraction="debugbreak klib nanopb BoxFort" +build_wrksrc=${pkgname}-${version} +patch_args="-Np1 --directory=${build_wrksrc}" + +post_extract() { + subprojs=${build_wrksrc}/subprojects + vsrcextract -C ${subprojs}/debugbreak debugbreak.tar.gz + cp -R ${subprojs}/packagefiles/debugbreak ${subprojs}/ + vsrcextract -C ${subprojs}/klib klib.tar.gz + cp -R ${subprojs}/packagefiles/klib ${subprojs}/ + vsrcextract -C ${subprojs}/nanopb nanopb.tar.gz + vsrcextract -C ${subprojs}/boxfort BoxFort.tar.gz +} + +post_install() { + vlicense LICENSE +} + +Criterion-devel_package() { + depends="Criterion>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/pkgconfig + vmove usr/lib/*.so + vmove usr/lib/*.a + } +}