From 5f5e4462249d628b5207b82a61800df2a504c1ae Mon Sep 17 00:00:00 2001 From: nippy Date: Sat, 29 Aug 2026 15:37:04 +0200 Subject: fix --- raveswitch/PKGBUILD | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/raveswitch/PKGBUILD b/raveswitch/PKGBUILD index 3a41487..d55bc51 100644 --- a/raveswitch/PKGBUILD +++ b/raveswitch/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: nippy pkgname=raveswitch pkgver=0.4.1 -pkgrel=2 +pkgrel=3 pkgdesc="A modern GTK4-based window switcher and application launcher for Hyprland" arch=('x86_64' 'aarch64') conflicts=('hyprshell') @@ -20,11 +20,19 @@ prepare() { # dep-crates/hyprland-rs is vendored without a README.md, but its own # src/lib.rs does include_str!("../README.md") -- create a stub so the # build doesn't fail on a missing doc-comment source file. + mkdir -p dep-crates/hyprland-rs [ -f dep-crates/hyprland-rs/README.md ] || echo "# hyprland-rs (vendored)" > dep-crates/hyprland-rs/README.md # crates/config-edit-lib embeds assets/logo.png via include_bytes!, but - # the repo only ships assets/raveicon.png -- reuse it as the logo. - [ -f assets/logo.png ] || cp assets/raveicon.png assets/logo.png - cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" + # the repo only ships assets/raveicon.png -- reuse it or create fallback. + mkdir -p assets + if [ ! -f assets/logo.png ]; then + if [ -f assets/raveicon.png ]; then + cp assets/raveicon.png assets/logo.png + else + touch assets/logo.png + fi + fi + cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" || cargo fetch } build() { -- cgit v1.3