forked from ceres-sees-all/ceres-ebuilds
Update caelestia-shell
This commit is contained in:
parent
7db24b454c
commit
2209ab6195
1 changed files with 17 additions and 0 deletions
|
|
@ -38,6 +38,17 @@ BDEPEND="dev-vcs/git
|
|||
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
|
||||
|
||||
wayland-scanner client-header < /usr/share/wayland-protocols/unstable/idle-inhibit/idle-inhibit-unstable-v1.xml > idle-inhibitor.h
|
||||
wayland-scanner private-code < /usr/share/wayland-protocols/unstable/idle-inhibit/idle-inhibit-unstable-v1.xml > idle-inhibitor.c
|
||||
gcc $CFLAGS -o idle-inhibitor.o -c idle-inhibitor.c
|
||||
g++ $CXXFLAGS -o inhibit_idle idle-inhibitor.cpp idle-inhibitor.o -lwayland-client $LDFLAGS
|
||||
rm idle-inhibitor.{h,c,o}
|
||||
|
||||
cd ${S}/plugin
|
||||
|
||||
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DINSTALL_QMLDIR=/usr/lib/qt6/qml
|
||||
cmake --build build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
@ -45,6 +56,12 @@ src_install() {
|
|||
install -Dm755 ./assets/beat_detector ${D}/usr/lib/caelestia/beat_detector
|
||||
rm ./assets/beat_detector
|
||||
|
||||
install -Dm755 ./assets/cpp/inhibit_idle ${D}/usr/lib/caelestia/inhibit_idle
|
||||
rm ./assets/cpp/inhibit_idle
|
||||
|
||||
DESTDIR={$D} cmake --install plugin/build
|
||||
rm -rf plugin/build
|
||||
|
||||
install -dm755 ${D}/etc/xdg/quickshell/caelestia
|
||||
cp -r ./* ${D}/etc/xdg/quickshell/caelestia/
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue