diff --git a/srcpkgs/joshuto/template b/srcpkgs/joshuto/template new file mode 100644 index 00000000000000..4c4d4cbfc307a5 --- /dev/null +++ b/srcpkgs/joshuto/template @@ -0,0 +1,28 @@ +# Template file for 'joshuto' +pkgname=joshuto +version=0.9.9 +revision=1 +archs="x86_64" +build_style=cargo +build_helper="qemu" +hostmakedepends="pkg-config" +makedepends="libgit2-devel" +depends="xsel wl-clipboard fzf zoxide" +short_desc="ranger-like terminal file manager written in Rust" +maintainer="Daniel Azevedo " +license="GPL-3.0-or-later" +homepage="https://crates.io/crates/joshuto" +changelog="https://github.com/kamiyaa/${pkgname}/releases/tag/v${version}" +distfiles="https://github.com/kamiyaa/${pkgname}/archive/refs/tags/v${version}.tar.gz" +checksum=85a230183f7478dee7c29229d78313ee07b759e596e19292acf024d2e5735efa + +do_install() { + vbin target/x86_64-unknown-linux-gnu/release/joshuto +} + + post_install() { + for sh in bash fish zsh; do + vtargetrun target/x86_64-unknown-linux-gnu/release/joshuto completions "$sh" > "joshuto.$sh" + vcompletion "joshuto.$sh" "$sh" + done +} diff --git a/srcpkgs/ncspot/template b/srcpkgs/ncspot/template index 4660ac7a70ff88..7031d02f072976 100644 --- a/srcpkgs/ncspot/template +++ b/srcpkgs/ncspot/template @@ -1,6 +1,6 @@ # Template file for 'ncspot' pkgname=ncspot -version=1.3.3 +version=1.3.4 revision=1 build_style=cargo build_helper="qemu" @@ -14,7 +14,7 @@ license="BSD-2-Clause" homepage="https://github.com/hrkfdn/ncspot" changelog="https://raw.githubusercontent.com/hrkfdn/ncspot/main/CHANGELOG.md" distfiles="https://github.com/hrkfdn/ncspot/archive/refs/tags/v${version}.tar.gz" -checksum=26edf6f1861828452355d614349c0a2af49113b392d7cd52290ea7f180f6bfe5 +checksum=93c4448b2c027c08c02295b2ffb1a48b684b65100cf4730b1dc9ae35afe06ea6 post_build() { cargo auditable build --release --target ${RUST_TARGET} --package xtask diff --git a/srcpkgs/wayle/template b/srcpkgs/wayle/template new file mode 100644 index 00000000000000..436d4ad55db95f --- /dev/null +++ b/srcpkgs/wayle/template @@ -0,0 +1,40 @@ +# Template file for 'wayle' +pkgname=wayle +version=0.6.0 +revision=1 +archs="x86_64" +build_style=cargo +build_helper="qemu" +_llvmver=22 # matches rust +hostmakedepends="pkg-config clang${_llvmver}" +makedepends="gtk4-devel gtk4-layer-shell-devel gtksourceview5-devel NetworkManager-devel pulseaudio-devel fftw-devel pipewire-devel eudev-libudev-devel" +depends="cava pulseaudio upower bluez" +short_desc="Wayland desktop shell written in Rust with GTK4 and Relm4" +maintainer="Daniel Azevedo " +license="MIT" +homepage="https://wayle.app" +changelog="https://github.com/wayle-rs/wayle/releases" +distfiles="https://github.com/wayle-rs/wayle/archive/refs/tags/v${version}.tar.gz" +checksum=1d887b9378d04dcf29057d4c8fb8323341f4f0e7ef094feea8ddbdcbf4dfa72e + +do_install() { + cargo auditable install --path wayle + cargo auditable install --path crates/wayle-settings + + vbin target/release/wayle + vbin target/release/wayle-settings + + vmkdir /usr/share/${pkgname}/icons + vcopy resources/icons/hicolor /usr/share/${pkgname}/icons/ + + vinstall resources/wayle-settings.svg 644 usr/share/icons/hicolor/scalable/apps + vinstall resources/com.wayle.settings.desktop 644 usr/share/applications + vlicense LICENSE +} + +post_install() { + for sh in bash fish zsh; do + vtargetrun target/release/wayle completions "$sh" > "wayle.$sh" + vcompletion "wayle.$sh" "$sh" + done +}