From fa5560977e79cd29e988fb26f39079a822d968cd Mon Sep 17 00:00:00 2001 From: Omar Zeghouani Date: Fri, 15 Oct 2021 20:11:35 +0100 Subject: [PATCH] New package: rofi-wayland-1.7.2 --- .../patches/disable-scrollbar-test.patch | 32 +++++++++++++++++++ .../patches/fix-libnkutils-test.patch | 13 ++++++++ srcpkgs/rofi-wayland/template | 23 +++++++++++++ 3 files changed, 68 insertions(+) create mode 100644 srcpkgs/rofi-wayland/patches/disable-scrollbar-test.patch create mode 100644 srcpkgs/rofi-wayland/patches/fix-libnkutils-test.patch create mode 100644 srcpkgs/rofi-wayland/template diff --git a/srcpkgs/rofi-wayland/patches/disable-scrollbar-test.patch b/srcpkgs/rofi-wayland/patches/disable-scrollbar-test.patch new file mode 100644 index 000000000000..9cb6c7fee7ba --- /dev/null +++ b/srcpkgs/rofi-wayland/patches/disable-scrollbar-test.patch @@ -0,0 +1,32 @@ +Don't run scrollbar test, it fails on x86. + +diff --git a/meson.build b/meson.build +index 6e1105a..f707cd9 100644 +--- a/meson.build ++++ b/meson.build +@@ -410,24 +410,6 @@ + dependencies: deps, + )) + +-test('scrollbar test', executable('scrollbar.test', [ +- 'test/scrollbar-test.c', +- theme_parser, +- theme_lexer, +- default_theme, +- ], +- objects: rofi.extract_objects([ +- 'source/widgets/widget.c', +- 'source/widgets/scrollbar.c', +- 'source/theme.c', +- 'source/css-colors.c', +- 'source/rofi-types.c', +- 'source/css-colors.c', +- 'config/config.c', +- ]), +- dependencies: deps, +-)) +- + test('textbox test', executable('textbox.test', [ + 'test/textbox-test.c', + theme_parser, + diff --git a/srcpkgs/rofi-wayland/patches/fix-libnkutils-test.patch b/srcpkgs/rofi-wayland/patches/fix-libnkutils-test.patch new file mode 100644 index 000000000000..5c9bce1da207 --- /dev/null +++ b/srcpkgs/rofi-wayland/patches/fix-libnkutils-test.patch @@ -0,0 +1,13 @@ +diff --git a/subprojects/libnkutils/tests/format-string.c b/subprojects/libnkutils/tests/format-string.c +index d00ad2d..cf69b20 100644 +--- a/subprojects/libnkutils/tests/format-string.c ++++ b/subprojects/libnkutils/tests/format-string.c +@@ -899,7 +899,7 @@ static const struct { + .testpath = "/nkutils/name/replace/escaping/forwardslash/3", + .data = { + .identifier = '$', +- .source = "${data/a/\\//b/x}", ++ .source = "${data/ab/\\/x}", + .data = { + { .name = "data", .content = "'ab'" }, + { .name = NULL } diff --git a/srcpkgs/rofi-wayland/template b/srcpkgs/rofi-wayland/template new file mode 100644 index 000000000000..8122f2dcddca --- /dev/null +++ b/srcpkgs/rofi-wayland/template @@ -0,0 +1,23 @@ +# Template file for 'rofi-wayland' +pkgname=rofi-wayland +version=1.7.2 +revision=1 +_ver=${version}+wayland1 +wrksrc=rofi-${_ver} +build_style=meson +configure_args="-Dxcb=disabled -Dcheck=disabled" +hostmakedepends="ninja flex bison glib-devel pkg-config wayland-devel" +makedepends="gdk-pixbuf-devel libxkbcommon-devel pango-devel + wayland-protocols wayland-devel" +checkdepends="check-devel cppcheck xkeyboard-config" +short_desc="Window switcher, run dialog and dmenu replacement" +maintainer="Omar Zeghouani " +license="MIT" +homepage="https://github.com/lbonn/rofi" +distfiles="https://github.com/lbonn/rofi/releases/download/${_ver}/rofi-${_ver}.tar.gz" +checksum=13c9ac16e9940f72e952d65fdaaa41b0fcbd8da483119a9f6b9bea5940ff2118 +replaces="rofi>=0" + +post_install() { + vlicense COPYING +}