Github messages for voidlinux
 help / color / mirror / Atom feed
From: subnut <subnut@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: rofi-wayland-1.7.5+wayland1
Date: Mon, 06 Feb 2023 19:41:50 +0100	[thread overview]
Message-ID: <20230206184150.e36-5aw_4QmwAN9Wzq2etaChDxSQrVsu_SZGdgHnKvw@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-42064@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 1261 bytes --]

There is an updated pull request by subnut against master on the void-packages repository

https://github.com/subnut/void-packages rofi-wayland
https://github.com/void-linux/void-packages/pull/42064

New package: rofi-wayland-1.7.5+wayland1
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
<!--
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/42064.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-rofi-wayland-42064.patch --]
[-- Type: text/x-diff, Size: 7162 bytes --]

From 851392a67c52459812512738f4f8bc25b91940c1 Mon Sep 17 00:00:00 2001
From: Subhaditya Nath <sn03.general@gmail.com>
Date: Sat, 4 Feb 2023 00:55:57 +0530
Subject: [PATCH] New package: rofi-wayland-1.7.5+wayland1

---
 .../patches/fix-libnkutils-test.patch         |  18 +++
 .../rofi-wayland/patches/wayland-suffix.patch | 142 ++++++++++++++++++
 srcpkgs/rofi-wayland/template                 |  39 +++++
 3 files changed, 199 insertions(+)
 create mode 100644 srcpkgs/rofi-wayland/patches/fix-libnkutils-test.patch
 create mode 100644 srcpkgs/rofi-wayland/patches/wayland-suffix.patch
 create mode 100644 srcpkgs/rofi-wayland/template

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..350e7b6abbcf
--- /dev/null
+++ b/srcpkgs/rofi-wayland/patches/fix-libnkutils-test.patch
@@ -0,0 +1,18 @@
+Fix for GLib 2.73.1 %e time format
+https://github.com/sardemff7/libnkutils/issues/4
+https://github.com/GNOME/glib/commit/7074122f308b7b3402fba250f2010778fdad6eff
+
+--- a/subprojects/libnkutils/tests/format-string.c
++++ b/subprojects/libnkutils/tests/format-string.c
+@@ -677,7 +677,11 @@ static const struct {
+                 { .name = "timestamp", .content = "1519910048" },
+                 { .name = NULL }
+             },
++#if GLIB_CHECK_VERSION(2,73,1)
++            .result = "Thu Mar \u20071 13:14:08 2018"
++#else /* ! GLIB_CHECK_VERSION(2,73,1) */
+             .result = "Thu Mar  1 13:14:08 2018"
++#endif /* ! GLIB_CHECK_VERSION(2,73,1) */
+         }
+     },
+     {
diff --git a/srcpkgs/rofi-wayland/patches/wayland-suffix.patch b/srcpkgs/rofi-wayland/patches/wayland-suffix.patch
new file mode 100644
index 000000000000..1e7a0059bb01
--- /dev/null
+++ b/srcpkgs/rofi-wayland/patches/wayland-suffix.patch
@@ -0,0 +1,142 @@
+--- a/script/rofi-sensible-terminal-wayland
++++ b/script/rofi-sensible-terminal-wayland
+@@ -15,4 +15,4 @@
+     fi
+ done
+ 
+-rofi -e "Failed to find a suitable terminal"
++rofi-wayland -e "Failed to find a suitable terminal"
+--- a/script/rofi-theme-selector-wayland
++++ b/script/rofi-theme-selector-wayland
+@@ -3,7 +3,7 @@
+ # This code is released in public domain by Dave Davenport <qball@gmpclient.org>
+ #
+ 
+-ROFI=$(which rofi)
++ROFI=$(which rofi-wayland)
+ SED=$(which sed)
+ MKTEMP=$(which mktemp)
+ 
+--- a/data/rofi-theme-selector-wayland.desktop
++++ b/data/rofi-theme-selector-wayland.desktop
+@@ -3,6 +3,6 @@
+ Version=1.0
+ Type=Application
+ Terminal=false
+-Exec=rofi-theme-selector
+-Name=Rofi Theme Selector
+-Icon=rofi
++Exec=rofi-theme-selector-wayland
++Name=Rofi Theme Selector (Wayland)
++Icon=rofi-wayland
+--- a/data/rofi-wayland.desktop
++++ b/data/rofi-wayland.desktop
+@@ -3,6 +3,6 @@
+ Version=1.0
+ Type=Application
+ Terminal=false
+-Exec=rofi -show
+-Name=Rofi
+-Icon=rofi
++Exec=rofi-wayland -show
++Name=Rofi (Wayland)
++Icon=rofi-wayland
+--- a/meson.build
++++ b/meson.build
+@@ -141,30 +141,21 @@
+ deps += nk.get_variable('libnkutils')
+ deps += nk.get_variable('libnkutils_bindings')
+ 
+-install_headers([
+-        'include/mode.h',
+-        'include/mode-private.h',
+-        'include/helper.h',
+-        'include/rofi-types.h',
+-        'include/rofi-icon-fetcher.h'
+-    ],
+-    subdir: meson.project_name(),
+-)
+ install_data(
+-    'script/rofi-sensible-terminal',
+-    'script/rofi-theme-selector',
++    'script/rofi-theme-selector-wayland',
+     install_dir: join_paths(get_option('prefix'), get_option('bindir'))
+ )
+ 
+ install_data(
+-  'data/rofi-theme-selector.desktop',
+-  'data/rofi.desktop',
++  'data/rofi-theme-selector-wayland.desktop',
++  'data/rofi-wayland.desktop',
+   install_dir: desktop_install_dir
+   )
+ install_data(
+-  'data/rofi.svg',
++  'data/rofi-wayland.svg',
++  'data/rofi-wayland.png',
+   install_dir: icondir
+ )
+ 
+ flex = generator(find_program('flex'),
+     output: '@BASENAME@.c',
+@@ -296,7 +283,7 @@
+ gnome = import('gnome')
+ default_theme = gnome.compile_resources('resources', files('resources/resources.xml'))
+ 
+-rofi = executable('rofi', rofi_sources + [
++rofi = executable('rofi-wayland', rofi_sources + [
+         theme_lexer,
+         theme_parser,
+         default_theme,
+@@ -307,49 +294,8 @@
+ 
+ subdir('doc')
+ install_man(
+-    'doc/rofi.1',
+-    'doc/rofi-theme-selector.1',
+-    'doc/rofi-sensible-terminal.1',
+-    'doc/rofi-script.5',
+-    'doc/rofi-theme.5',
+-    'doc/rofi-debugging.5',
+-    'doc/rofi-dmenu.5',
+-    'doc/rofi-keys.5',
+-)
+-
+-install_data(
+-    'themes/Adapta-Nokto.rasi',
+-    'themes/Arc.rasi',
+-    'themes/Arc-Dark.rasi',
+-    'themes/DarkBlue.rasi',
+-    'themes/Indego.rasi',
+-    'themes/Monokai.rasi',
+-    'themes/Paper.rasi',
+-    'themes/android_notification.rasi',
+-    'themes/arthur.rasi',
+-    'themes/blue.rasi',
+-    'themes/c64.rasi',
+-    'themes/dmenu.rasi',
+-    'themes/docu.rasi',
+-    'themes/glue_pro_blue.rasi',
+-    'themes/gruvbox-common.rasi',
+-    'themes/gruvbox-dark-hard.rasi',
+-    'themes/gruvbox-dark-soft.rasi',
+-    'themes/gruvbox-dark.rasi',
+-    'themes/gruvbox-light-hard.rasi',
+-    'themes/gruvbox-light-soft.rasi',
+-    'themes/gruvbox-light.rasi',
+-    'themes/lb.rasi',
+-    'themes/paper-float.rasi',
+-    'themes/purple.rasi',
+-    'themes/sidebar.rasi',
+-    'themes/sidebar-v2.rasi',
+-    'themes/solarized.rasi',
+-    'themes/solarized_alternate.rasi',
+-    'themes/fancy.rasi',
+-    'themes/iggy.rasi',
+-    'themes/iggy.jpg',
+-    install_dir: themedir
++    'doc/rofi-wayland.1',
++    'doc/rofi-theme-selector-wayland.1',
+ )
+ 
+ pkg = import('pkgconfig')
diff --git a/srcpkgs/rofi-wayland/template b/srcpkgs/rofi-wayland/template
new file mode 100644
index 000000000000..45857ff39b40
--- /dev/null
+++ b/srcpkgs/rofi-wayland/template
@@ -0,0 +1,39 @@
+# Template file for 'rofi-wayland'
+pkgname=rofi-wayland
+version=1.7.5+wayland1
+revision=1
+build_style=meson
+hostmakedepends="pkg-config flex glib-devel wayland-devel"
+makedepends="libglib-devel cairo-devel pango-devel libxkbcommon-devel
+ gdk-pixbuf-devel wayland-devel libmpdclient-devel libnl3-devel libxcb-devel
+ xcb-util-devel xcb-util-wm-devel xcb-util-cursor-devel
+ startup-notification-devel wayland-protocols alsa-lib-devel"
+depends="rofi>=${version%+*} bash which sed"
+short_desc="Window switcher, run dialog and dmenu replacement - Wayland"
+maintainer="Subhaditya Nath <sn03.general@gmail.com>"
+license="MIT"
+homepage="https://github.com/lbonn/rofi"
+changelog="https://raw.githubusercontent.com/lbonn/rofi/wayland/Changelog"
+distfiles="https://github.com/lbonn/rofi/releases/download/${version%%+*}%2B${version##*+}/rofi-${version}.tar.gz"
+checksum=4b7b5de0606e91380861dce6f2b894bebf63b2031c8746fd4096f72576ce541a
+
+if [ "$XBPS_CHECK_PKGS" ]; then
+	makedepends+=" check-devel"
+fi
+
+post_extract() {
+	for f in script/rofi-*; do
+		mv $f "$f-wayland"
+	done
+	for f in data/*; do
+		mv $f "${f%.*}-wayland.${f##*.}"
+	done
+	for f in doc/*.?; do
+		mv $f ${f%.?}-wayland.${f##*.}
+	done
+}
+
+post_install() {
+	vlicense COPYING
+	rm -rf $DESTDIR/usr/lib/pkgconfig
+}

  parent reply	other threads:[~2023-02-06 18:41 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-03 20:36 [PR PATCH] " subnut
2023-02-03 20:38 ` [PR PATCH] [Updated] " subnut
2023-02-03 20:42 ` subnut
2023-02-03 20:49 ` subnut
2023-02-03 21:14 ` kruceter
2023-02-03 21:17 ` classabbyamp
2023-02-03 22:32 ` subnut
2023-02-03 22:37 ` [PR PATCH] [Updated] " subnut
2023-02-03 22:38 ` subnut
2023-02-03 22:40 ` [PR PATCH] [Updated] " subnut
2023-02-03 22:47 ` [PR REVIEW] " kruceter
2023-02-03 22:47 ` kruceter
2023-02-03 22:47 ` kruceter
2023-02-03 22:47 ` kruceter
2023-02-03 22:47 ` kruceter
2023-02-03 22:47 ` kruceter
2023-02-03 23:37 ` paper42
2023-02-03 23:37 ` paper42
2023-02-03 23:37 ` paper42
2023-02-03 23:37 ` paper42
2023-02-03 23:43 ` classabbyamp
2023-02-06 18:41 ` subnut [this message]
2023-02-06 18:43 ` subnut
2023-02-06 18:44 ` subnut
2023-02-06 18:47 ` subnut
2023-02-06 18:48 ` subnut
2023-02-06 18:49 ` paper42
2023-02-06 18:52 ` paper42
2023-02-06 18:57 ` [PR PATCH] [Updated] " subnut
2023-02-06 19:34 ` [PR REVIEW] " subnut
2023-02-06 19:36 ` [PR PATCH] [Updated] " subnut
2023-02-06 19:37 ` [PR REVIEW] " subnut
2023-05-08  1:53 ` github-actions
2023-05-22  1:57 ` [PR PATCH] [Closed]: " github-actions
2023-05-23 20:25 [PR PATCH] " inalone
2023-05-23 20:28 ` [PR PATCH] [Updated] " inalone
2023-05-23 20:38 ` inalone
2023-08-25 22:35 ` inalone
2023-08-27 10:35 ` inalone
2023-09-10 21:59 ` inalone
2023-09-13 19:17 ` inalone
2023-09-24 21:58 ` inalone

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230206184150.e36-5aw_4QmwAN9Wzq2etaChDxSQrVsu_SZGdgHnKvw@z \
    --to=subnut@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).