From 6c16fbfc4be344d4c44a63643e21699c53baac3e 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.0 --- ...1-meson-fix-version-in-rofi.pc-again.patch | 24 +++++++++++++++ .../patches/disable-scrollbar-test.patch | 30 +++++++++++++++++++ srcpkgs/rofi-wayland/template | 23 ++++++++++++++ 3 files changed, 77 insertions(+) create mode 100644 srcpkgs/rofi-wayland/patches/0001-meson-fix-version-in-rofi.pc-again.patch 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/0001-meson-fix-version-in-rofi.pc-again.patch b/srcpkgs/rofi-wayland/patches/0001-meson-fix-version-in-rofi.pc-again.patch new file mode 100644 index 000000000000..70119411a816 --- /dev/null +++ b/srcpkgs/rofi-wayland/patches/0001-meson-fix-version-in-rofi.pc-again.patch @@ -0,0 +1,24 @@ +From de28766ce014d9cd09c460d520a8a28fbe41fa0d Mon Sep 17 00:00:00 2001 +From: Jakub Jirutka +Date: Mon, 4 Oct 2021 00:59:51 +0200 +Subject: [PATCH] [Meson] Fix version in rofi.pc again +Patch-Source: https://github.com/lbonn/rofi/pull/37 + +rofi.pc: pkgconf version 1.7.0+wayland1 is invalid +--- + meson.build | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/meson.build b/meson.build +index 604956f11..dfb1af847 100644 +--- a/meson.build ++++ b/meson.build +@@ -339,7 +339,7 @@ pkg = import('pkgconfig') + pkg.generate( + filebase: 'rofi', + name: 'rofi', +- version: meson.project_version().split('-')[0], ++ version: meson.project_version().split('+')[0], + description: 'Header files for rofi plugins', + variables: [ + 'pluginsdir=@0@'.format(join_paths('${libdir}', meson.project_name())), 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..fd6b00624ffd --- /dev/null +++ b/srcpkgs/rofi-wayland/patches/disable-scrollbar-test.patch @@ -0,0 +1,30 @@ +Don't run scrollbar test, it fails on i686. + +diff --git a/meson.build b/meson.build +index 6e1105a..f707cd9 100644 +--- a/meson.build ++++ b/meson.build +@@ -342,23 +342,6 @@ test('box test', executable('box.test', [ + 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/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..88d531a0ca3c --- /dev/null +++ b/srcpkgs/rofi-wayland/template @@ -0,0 +1,23 @@ +# Template file for 'rofi-wayland' +pkgname=rofi-wayland +version=1.7.0 +revision=1 +_ver=${version}+wayland1 +wrksrc=rofi-${_ver} +build_style=meson +configure_args="-Dxcb=disabled -Dcheck=disabled" +hostmakedepends="ninja flex bison pkg-config wayland-devel" +makedepends="glib-devel 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=07892f3f993de3ccc5e3e7705c58a88498216d2a7aaaabb14e29dd2837701691 +replaces="rofi>=0" + +post_install() { + vlicense COPYING +}