From 1acd735c1e15be88c64026afb641b4424e6e7076 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 +++++++++++++++++++ srcpkgs/rofi-wayland/template | 23 ++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 srcpkgs/rofi-wayland/patches/01-meson-fix-version-in-rofi.pc-again.patch create mode 100644 srcpkgs/rofi-wayland/template diff --git a/srcpkgs/rofi-wayland/patches/01-meson-fix-version-in-rofi.pc-again.patch b/srcpkgs/rofi-wayland/patches/01-meson-fix-version-in-rofi.pc-again.patch new file mode 100644 index 000000000000..70119411a816 --- /dev/null +++ b/srcpkgs/rofi-wayland/patches/01-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/template b/srcpkgs/rofi-wayland/template new file mode 100644 index 000000000000..71b9302d9583 --- /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 glib-devel pkg-config wayland-devel wayland-protocols" +makedepends="libXinerama-devel librsvg-devel libxkbcommon-devel + pango-devel startup-notification-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 +}