mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-19 15:59:00 -04:00
61 lines
1.0 KiB
Bash
61 lines
1.0 KiB
Bash
# Copyright 2023-2024 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit cmake
|
|
|
|
COMMIT="158c52c4a76cff7a1635be8ec1a4a369bc8674ed"
|
|
DESCRIPTION="Hyprland's idle daemon"
|
|
HOMEPAGE="https://github.com/hyprwm/hypridle"
|
|
|
|
if [[ "${PV}" = *9999 ]]; then
|
|
inherit git-r3
|
|
EGIT_REPO_URI="https://github.com/hyprwm/${PN^}.git"
|
|
else
|
|
SRC_URI="https://github.com/hyprwm/${PN^}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
|
|
S="${WORKDIR}/${PN}-${PV}"
|
|
|
|
KEYWORDS="~amd64"
|
|
fi
|
|
|
|
LICENSE="BSD"
|
|
SLOT="0"
|
|
|
|
RDEPEND="
|
|
dev-libs/wayland
|
|
gui-libs/egl-wayland
|
|
|| (
|
|
>=media-libs/mesa-24.1.0_rc1[opengl]
|
|
<media-libs/mesa-24.1.0_rc1[egl(+),gles2]
|
|
)
|
|
>=gui-wm/hyprland-0.35.0
|
|
dev-cpp/sdbus-c++
|
|
>=dev-libs/hyprlang-0.4.0
|
|
"
|
|
DEPEND="
|
|
${RDEPEND}
|
|
dev-libs/wayland-protocols
|
|
"
|
|
|
|
BDEPEND="
|
|
virtual/pkgconfig
|
|
dev-build/cmake
|
|
"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}/0001-fix-CFLAGS-CXXFLAGS-hypridle.patch"
|
|
)
|
|
|
|
src_configure() {
|
|
local mycmakeargs=(
|
|
-DCMAKE_BUILD_TYPE:STRING=Release
|
|
)
|
|
|
|
cmake_src_configure
|
|
}
|
|
|
|
src_install() {
|
|
cmake_src_install
|
|
}
|