mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 03:53:22 -04:00
93 lines
2.3 KiB
Bash
93 lines
2.3 KiB
Bash
# Copyright 2023 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit meson
|
|
|
|
COMMIT=1228eb57f9debd35811f0ade43bef5eaa09aab42
|
|
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/hyprwm/Hyprland/releases/download/v${PV}/source-v${PV}.tar.gz \
|
|
-> ${P}-hyprsrc.gh.tar.gz
|
|
"
|
|
S="${WORKDIR}/${PN}-${COMMIT}"
|
|
|
|
LICENSE="BSD"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
IUSE="+borders-plus-plus csgo-vulkan-fix +hyprbars"
|
|
REQUIRED_USE="|| ( borders-plus-plus csgo-vulkan-fix hyprbars )"
|
|
|
|
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
|
|
}
|
|
|
|
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
|
|
}
|
|
|
|
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/"
|
|
}
|