From cb34df2733e3d6df3c7c64440bdca635cf539131 Mon Sep 17 00:00:00 2001 From: Marcin Puc Date: Sat, 1 Apr 2023 14:56:13 +0200 Subject: [PATCH] New package: fend-1.1.5 --- srcpkgs/fend/patches/test-error.patch | 35 +++++++++++++++++++++++++++ srcpkgs/fend/template | 17 +++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 srcpkgs/fend/patches/test-error.patch create mode 100644 srcpkgs/fend/template diff --git a/srcpkgs/fend/patches/test-error.patch b/srcpkgs/fend/patches/test-error.patch new file mode 100644 index 000000000000..15f92309b94f --- /dev/null +++ b/srcpkgs/fend/patches/test-error.patch @@ -0,0 +1,35 @@ +From 00aff244f9072afb7bec5f68a2ea29c32484caff Mon Sep 17 00:00:00 2001 +From: printfn +Date: Sun, 2 Apr 2023 19:44:05 +0000 +Subject: [PATCH] Fix test failures on 32-bit systems + +--- + core/tests/integration_tests.rs | 11 +++-------- + 1 file changed, 3 insertions(+), 8 deletions(-) + +diff --git a/core/tests/integration_tests.rs b/core/tests/integration_tests.rs +index 7aa6517..e4b3e82 100644 +--- a/core/tests/integration_tests.rs ++++ b/core/tests/integration_tests.rs +@@ -5432,18 +5432,13 @@ fn test_invalid_dice_syntax_3() { + + #[test] + fn test_invalid_dice_syntax_4() { +- expect_error( +- "d30000000000000000", +- Some("invalid dice syntax, try e.g. `4d6`"), +- ); ++ expect_error("d30000000000000000", None); + } + + #[test] + fn test_invalid_dice_syntax_5() { +- expect_error( +- "30000000000000000d2", +- Some("invalid dice syntax, try e.g. `4d6`"), +- ); ++ // this produces different error messages on 32-bit vs 64-bit platforms ++ expect_error("30000000000000000d2", None); + } + + #[test] diff --git a/srcpkgs/fend/template b/srcpkgs/fend/template new file mode 100644 index 000000000000..90bae782ab5d --- /dev/null +++ b/srcpkgs/fend/template @@ -0,0 +1,17 @@ +# Template file for 'fend' +pkgname=fend +version=1.1.5 +revision=1 +build_style=cargo +make_install_args="--path cli" +short_desc="Arbitrary-precision unit-aware calculator" +maintainer="Marcin Puc " +license="MIT" +homepage="https://printfn.github.io/fend/" +changelog="https://raw.githubusercontent.com/printfn/fend/main/CHANGELOG.md" +distfiles="https://github.com/printfn/fend/archive/refs/tags/v${version}.tar.gz" +checksum=4b9c8056c3e45bcfb068b4536b037eb9986b75fa2f86f561ea3ddd87946b7127 + +post_install() { + vlicense LICENSE.md +}