commit:     e641eead3398c3fb2baa0051c4347c884787c955
Author:     Gonçalo Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Tue Nov 14 11:19:38 2023 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Tue Nov 14 11:22:39 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e641eead

gui-apps/hyprland-plugins: add 0.32.3

Signed-off-by: Gonçalo Duarte <gonegrier.duarte <AT> gmail.com>

 gui-apps/hyprland-plugins/Manifest                 |   2 +
 .../hyprland-plugins-0.32.3.ebuild                 | 102 +++++++++++++++++++++
 2 files changed, 104 insertions(+)

diff --git a/gui-apps/hyprland-plugins/Manifest 
b/gui-apps/hyprland-plugins/Manifest
index 1f083e7b8c..6fb306243c 100644
--- a/gui-apps/hyprland-plugins/Manifest
+++ b/gui-apps/hyprland-plugins/Manifest
@@ -1,2 +1,4 @@
 DIST hyprland-plugins-0.31.0-split-monitor-workspaces.gh.tar.gz 7711 BLAKE2B 
08d6e31fb23321058d9ae935e92b700281e6801a9f4d363c33a288730e2b5448916d2446a6ea8a3e071e052c886b4aae9df5b36abcfd42381094242a0396f4de
 SHA512 
0de58765faa242b5e87f7ce1eec3a9265b97b7a16ce45fbb099c07f94989bed0042d65e580cf20e81e45b306d8b7d8a605300c87a84b8f69053678e6e41ec094
 DIST hyprland-plugins-0.31.0.gh.tar.gz 13160 BLAKE2B 
fed8de62adb8521fb99541e5802ba3316fff6f5e3ba6036ac12c8f1f7186d9806163189cedb15e30ac3213af548562f007c85fe7df3e9151a062396521ca0578
 SHA512 
2e72038591bfd372962c2d842937bcc6011f8f5bd75b2dca11cc604fca337b8b4d4af68bc5377e6e7d3f49008ee73e6ef91f450a3c207f1c73d1a00552f29f59
+DIST hyprland-plugins-0.32.3-split-monitor-workspaces.gh.tar.gz 7757 BLAKE2B 
69d63bbf37c46b507a5983d6bf9bfc98f66c19c69e5543ba217c05b2c2feca88443968351bd27a2473ef7f297e866a88bc0f2047f78840dc7515c32942b803dc
 SHA512 
8ecec6895456b5b84a8f9c887fe54da0e5b23ca7eae22eacfb353115b361260437a398823bb8e973fa45e1676dc4c2755efd18820ebfd7a265571f9b4dd2dfda
+DIST hyprland-plugins-0.32.3.gh.tar.gz 21262 BLAKE2B 
262336d22d150579c43dcb5c9d4bb1823ea9cf2976a94f0df84568c8155785cdcf37322f10bcb7869a9c4b9b6688085d4ab7a85f170c9e219df35c67e601136b
 SHA512 
eac31a9e38cbfe2eaf27054be5a88cbf9adf969a58c4a7daf477040846d22882af9c4da2f5804dcb6a78ac4d5b9f2e9488ce6ce0cbe1a278f0e4a8c86701ac9c

diff --git a/gui-apps/hyprland-plugins/hyprland-plugins-0.32.3.ebuild 
b/gui-apps/hyprland-plugins/hyprland-plugins-0.32.3.ebuild
new file mode 100644
index 0000000000..605ebcc526
--- /dev/null
+++ b/gui-apps/hyprland-plugins/hyprland-plugins-0.32.3.ebuild
@@ -0,0 +1,102 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit meson
+
+COMMIT=2cc193e6dc524baed841c016109b4f48fd0512a3
+SPLITCOMMIT=2b1abdbf9e9de9ee660540167c8f51903fa3d959
+DESCRIPTION="A blazing fast wayland wallpaper utility"
+HOMEPAGE="https://github.com/hyprwm/hyprland-plugins";
+SRC_URI="https://github.com/hyprwm/${PN}/archive/${COMMIT}.tar.gz -> 
${P}.gh.tar.gz
+       
https://github.com/Duckonaut/split-monitor-workspaces/archive/${SPLITCOMMIT}.tar.gz
 \
+       -> ${P}-split-monitor-workspaces.gh.tar.gz
+"
+
+S="${WORKDIR}/${PN}-${COMMIT}"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+borders-plus-plus csgo-vulkan-fix +hyprbars split-monitor-workspaces"
+REQUIRED_USE="|| ( borders-plus-plus csgo-vulkan-fix hyprbars 
split-monitor-workspaces )"
+
+RDEPEND="gui-wm/hyprland"
+DEPEND="${RDEPEND}"
+BDEPEND="
+       ~gui-wm/hyprland-${PV}
+       x11-libs/libdrm
+       x11-libs/pixman
+       x11-libs/xcb-util-wm
+"
+
+src_configure() {
+       if use borders-plus-plus; then
+               BUILD_DIR="${WORKDIR}/${P}-build/borders-plus-plus"
+               EMESON_SOURCE="${S}/borders-plus-plus"
+               meson_src_configure
+       fi
+
+       if use csgo-vulkan-fix; then
+               BUILD_DIR="${WORKDIR}/${P}-build/csgo-vulkan-fix"
+               EMESON_SOURCE="${S}/csgo-vulkan-fix"
+               meson_src_configure
+       fi
+
+       if use hyprbars; then
+               BUILD_DIR="${WORKDIR}/${P}-build/hyprbars"
+               EMESON_SOURCE="${S}/hyprbars"
+               meson_src_configure
+       fi
+}
+
+src_compile() {
+       if use borders-plus-plus; then
+               BUILD_DIR="${WORKDIR}/${P}-build/borders-plus-plus"
+               EMESON_SOURCE="${S}/borders-plus-plus"
+               meson_src_compile
+       fi
+
+       if use csgo-vulkan-fix; then
+               BUILD_DIR="${WORKDIR}/${P}-build/csgo-vulkan-fix"
+               EMESON_SOURCE="${S}/csgo-vulkan-fix"
+               meson_src_compile
+       fi
+
+       if use hyprbars; then
+               BUILD_DIR="${WORKDIR}/${P}-build/hyprbars"
+               EMESON_SOURCE="${S}/hyprbars"
+               meson_src_compile
+       fi
+
+       if use split-monitor-workspaces; then
+               emake -C "${WORKDIR}/split-monitor-workspaces-${SPLITCOMMIT}" 
split-monitor-workspaces.so
+       fi
+}
+
+src_install() {
+       insinto "/usr/share/hyprland/plugins"
+
+       if use borders-plus-plus; then
+               newins 
"${WORKDIR}/${P}-build/borders-plus-plus/libborders-plus-plus.so" 
"borders-plus-plus.so"
+       fi
+
+       if use csgo-vulkan-fix; then
+               newins 
"${WORKDIR}/${P}-build/csgo-vulkan-fix/libcsgo-vulkan-fix.so" 
"csgo-vulkan-fix.so"
+       fi
+
+       if use hyprbars; then
+               newins "${WORKDIR}/${P}-build/hyprbars/libhyprbars.so" 
"hyprbars.so"
+       fi
+
+       if use split-monitor-workspaces; then
+               doins 
"${WORKDIR}/split-monitor-workspaces-${SPLITCOMMIT}/split-monitor-workspaces.so"
+       fi
+}
+
+pkg_postinst() {
+       einfo "Plugins are installed in /usr/share/hyprland/plugins"
+       einfo "To load them, refer to the official documentation"
+       einfo "https://wiki.hyprland.org/Plugins/Using-Plugins/";
+}

Reply via email to