gui-apps/hyprland-plugins: add 0.29.1

Signed-off-by: David Roman <davidroman96@gmail.com>
This commit is contained in:
David Roman
2023-09-26 16:32:20 +02:00
parent 16e9ba67e8
commit e8f601d0c4
2 changed files with 104 additions and 0 deletions

View File

@@ -1,2 +1,4 @@
DIST hyprland-plugins-0.27.2-split-monitor-workspaces.gh.tar.gz 4498 BLAKE2B 127081c953ce818b80b5865ec48fbf35584f3f5f2945c168e1ecf150dda5f71fdac499c236a5baa34502e0ab69e3fe0fc652d0bfd8c14aaedb74ecb03792b9ba SHA512 47e1dc0a9bcb014a6c7113405ddbc87a5e5f267d65e82ea9f557c1be156cd7e269fdf80406697b295e0f66f53e0d4ccc5a768910f201d6a459f68a8ad7708a93
DIST hyprland-plugins-0.27.2.gh.tar.gz 12209 BLAKE2B c5f74cbe13e99f71a24a272a015df70f20ae62f9e552d35914ccff37474b564a28ff81e60584caf186d111e1e3a0716e7ba03b3e201823616167708ef0aa2a0f SHA512 875c7cdb2552d5c8e68a6705f7d82173fa6f3e7637b049125d88e6b4a130f330c66b49bbb2685d302345d101fba6f23d873e7511b2fad510d1a9286c127fbaf7
DIST hyprland-plugins-0.29.1-split-monitor-workspaces.gh.tar.gz 7786 BLAKE2B 9b9075a464a16ef999c4fddb6dc640fbd7566a5de9db054997895797718e686594b14ebab42702c87d66e7ccf6f2c12a0fa0fb9cfeb7ca09816e4614865ce4ad SHA512 04e5c23391a8f656fc598e4e4dbdb6afc0e71ff2b444515605d4cdac6cd159cfb451dc03f5cdaf14b4df6556d9cdd25ee056c629a674f470d7e99e344b580f8b
DIST hyprland-plugins-0.29.1.gh.tar.gz 12841 BLAKE2B 4e84b753253b2bdd8f405ed316b0ed5838865173aa098fc6693326a50a8189b8b3a52e59249d89082a7e215f1ff9c600b23d4df2d3e0b298efe5f96fe5b10a94 SHA512 904aeb6dd43d0542ce7e23a12991a71323eaae6b5e1a25f6f0ba5cd391afa5e94ecfa52946ff4e27d60fc584684938b5e356a7690d0309267ddb0c266de4648d

View File

@@ -0,0 +1,102 @@
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit meson
COMMIT=f9578d28d272fb61753417e175b0fcd5bedc1443
SPLITCOMMIT=d8c97d60753f70d686588ad3b0a877e2ca67ff72
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/"
}