diff --git a/srcpkgs/frozen/patches/no-constexpr.patch b/srcpkgs/frozen/patches/no-constexpr.patch new file mode 100644 index 00000000000..1a5d52357b6 --- /dev/null +++ b/srcpkgs/frozen/patches/no-constexpr.patch @@ -0,0 +1,12 @@ +--- a/tests/test_unordered_set.cpp ++++ b/tests/test_unordered_set.cpp +@@ -65,8 +65,8 @@ TEST_CASE("tripleton str frozen unordere + constexpr auto max_size = ze_set.max_size(); + REQUIRE(max_size == 3); + +- constexpr auto nocount = ze_set.count(4); ++ auto nocount = ze_set.count(4); + REQUIRE(nocount == 0); + + constexpr auto count = ze_set.count(1); + REQUIRE(count == 1); diff --git a/srcpkgs/frozen/template b/srcpkgs/frozen/template new file mode 100644 index 00000000000..c8b8c1cbb16 --- /dev/null +++ b/srcpkgs/frozen/template @@ -0,0 +1,13 @@ +# Template file for 'frozen' +pkgname=frozen +version=1.1.1 +revision=1 +build_style=cmake +configure_args="-DBUILD_TESTING=ON" +short_desc="Header-only, constexpr alternative to gperf for C++14 users" +maintainer="Đoàn Trần Công Danh " +license="Apache-2.0" +homepage="https://github.com/serge-sans-paille/frozen" +distfiles="https://github.com/serge-sans-paille/frozen/archive/refs/tags/${version}.tar.gz" +distfiles="https://dev-www.libreoffice.org/src/frozen-${version}.tar.gz" +checksum=f7c7075750e8fceeac081e9ef01944f221b36d9725beac8681cbd2838d26be45