summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--raveswitch/PKGBUILD16
1 files 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 <nippy@tuta.io>
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() {