From 44aac31a3bb7462e098a573e6a4408cf51912148 Mon Sep 17 00:00:00 2001 From: Till Mahlburg Date: Fri, 7 Apr 2023 13:10:09 +0200 Subject: [PATCH] New package: swayfx-0.2 --- srcpkgs/swayfx/INSTALL | 5 +++++ srcpkgs/swayfx/patches/7326.diff | 26 ++++++++++++++++++++++++++ srcpkgs/swayfx/template | 23 +++++++++++++++++++++++ 3 files changed, 54 insertions(+) create mode 100644 srcpkgs/swayfx/INSTALL create mode 100644 srcpkgs/swayfx/patches/7326.diff create mode 100644 srcpkgs/swayfx/template diff --git a/srcpkgs/swayfx/INSTALL b/srcpkgs/swayfx/INSTALL new file mode 100644 index 000000000000..0120d14908bc --- /dev/null +++ b/srcpkgs/swayfx/INSTALL @@ -0,0 +1,5 @@ +case "${ACTION}" in +post) + setcap CAP_SYS_NICE=+ep usr/bin/sway + ;; +esac diff --git a/srcpkgs/swayfx/patches/7326.diff b/srcpkgs/swayfx/patches/7326.diff new file mode 100644 index 000000000000..c310f9af4c7c --- /dev/null +++ b/srcpkgs/swayfx/patches/7326.diff @@ -0,0 +1,26 @@ +diff --git a/sway/config.c b/sway/config.c +index 1f2bb68604..f5efa98a8e 100644 +--- a/sway/config.c ++++ b/sway/config.c +@@ -37,7 +37,7 @@ struct sway_config *config = NULL; + + static struct xkb_state *keysym_translation_state_create( + struct xkb_rule_names rules) { +- struct xkb_context *context = xkb_context_new(XKB_CONTEXT_NO_FLAGS); ++ struct xkb_context *context = xkb_context_new(XKB_CONTEXT_NO_SECURE_GETENV); + struct xkb_keymap *xkb_keymap = xkb_keymap_new_from_names( + context, + &rules, +diff --git a/sway/input/keyboard.c b/sway/input/keyboard.c +index 3f4a7289b9..45a588ecbf 100644 +--- a/sway/input/keyboard.c ++++ b/sway/input/keyboard.c +@@ -754,7 +754,7 @@ static void handle_xkb_context_log(struct xkb_context *context, + + struct xkb_keymap *sway_keyboard_compile_keymap(struct input_config *ic, + char **error) { +- struct xkb_context *context = xkb_context_new(XKB_CONTEXT_NO_FLAGS); ++ struct xkb_context *context = xkb_context_new(XKB_CONTEXT_NO_SECURE_GETENV); + if (!sway_assert(context, "cannot create XKB context")) { + return NULL; + } diff --git a/srcpkgs/swayfx/template b/srcpkgs/swayfx/template new file mode 100644 index 000000000000..2483ca15cfa2 --- /dev/null +++ b/srcpkgs/swayfx/template @@ -0,0 +1,23 @@ +# Template file for 'swayfx' +pkgname=swayfx +version=0.2 +revision=1 +build_style=meson +configure_args="-Dwerror=false -Db_ndebug=false" +conf_files="/etc/sway/config" +hostmakedepends="pkg-config wayland-devel scdoc" +makedepends="wlroots-devel pcre2-devel json-c-devel pango-devel cairo-devel + gdk-pixbuf-devel libevdev-devel" +depends="libcap-progs swaybg xorg-server-xwayland libxkbcommon>=1.5.0_1" +short_desc="Sway, but with eye candy!" +maintainer="Till Mahlburg " +license="MIT" +homepage="https://github.com/WillPower3309/swayfx" +changelog="https://github.com/WillPower3309/swayfx/releases" +distfiles="https://github.com/WillPower3309/swayfx/archive/refs/tags/${version}.tar.gz" +checksum=fe5f6070b9b3fc97fafb1bfe1caddce71458632ef4fb884a9ec28d1a458b4e55 +conflicts="sway" + +post_install() { + vlicense LICENSE +}