From 10d739bb2596513cdfe0e059e34d430d988f299f 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 +++++++++++++++++++ srcpkgs/rofi-wayland/template | 23 +++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 srcpkgs/rofi-wayland/patches/disable-scrollbar-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/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 +}