ceres-ebuilds/gui-wm/caelestia-shell/caelestia-shell-9999.ebuild
2025-08-18 22:29:34 +01:00

50 lines
No EOL
1.3 KiB
Bash

# Copyright 2023-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit git-r3
DESCRIPTION="The desktop shell for the Caelestia dotfiles"
HOMEPAGE="https://github.com/caelestia-dots/shell"
EGIT_REPO_URI="https://github.com/caelestia-dots/shell.git"
LICENSE="GPL-3.0"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
DEPEND="sys-apps/caelestia-cli
gui-apps/quickshell
app-misc/ddcutil
sys-apps/app2unit
media-sound/cava
net-misc/networkmanager
sys-apps/lm-sensors
app-shells/fish
media-libs/aubio
media-video/pipewire
sys-libs/glibc
sys-power/power-profiles-daemon
gui-apps/grim
gui-apps/swappy
sci-libs/libqalculate
"
RDEPEND=${DEPEND}
BDEPEND="dev-vcs/git
sys-devel/gcc"
src_compile() {
cd ${S}/assets
g++ $CXXFLAGS -std=c++17 -Wall -Wextra -I/usr/include/pipewire-0.3 -I/usr/include/spa-0.2 -I/usr/include/aubio -o beat_detector beat_detector.cpp -lpipewire-0.3 -laubio $LDFLAGS
}
src_install() {
cd ${S}
install -Dm755 ./assets/beat_detector ${D}/usr/lib/caelestia/beat_detector
rm ./assets/beat_detector
install -dm755 ${D}/etc/xdg/quickshell/caelestia
cp -r ./* ${D}/etc/xdg/quickshell/caelestia/
}