From 864bfb7a9dc773269bfa0cd3e51a4ebe6552d21b Mon Sep 17 00:00:00 2001 From: Daniel Martinez Date: Tue, 7 Nov 2023 08:16:32 -0500 Subject: [PATCH] New package: swww-0.8.2 --- srcpkgs/swww/template | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 srcpkgs/swww/template diff --git a/srcpkgs/swww/template b/srcpkgs/swww/template new file mode 100644 index 00000000000000..79cae8639a94d4 --- /dev/null +++ b/srcpkgs/swww/template @@ -0,0 +1,33 @@ +# Template file for 'swww' +pkgname=swww +version=0.8.2 +revision=1 +build_style=cargo +hostmakedepends="scdoc" +short_desc="Solution to your Wayland Wallpaper Woes" +maintainer="Daniel Martinez " +license="GPL-3.0-only" +homepage="https://github.com/LGFae/swww" +changelog="https://raw.githubusercontent.com/LGFae/swww/v${version}/CHANGELOG.md" +distfiles="https://github.com/LGFae/swww/archive/refs/tags/v${version}.tar.gz" +checksum=6733cda771a0e635dbd00f7aef78ed60f1ccdf640647ecfe02d0cdfdef996b68 + +post_build() { + ./doc/gen.sh +} + +# overriding default do_install(), since by default +# it will pointlessly rebuild the package again +do_install() { + + vbin target/${RUST_TARGET}/release/swww + vbin target/${RUST_TARGET}/release/swww-daemon + + for doc in doc/generated/*; do + vman $doc + done + + vcompletion completions/swww.bash bash + vcompletion completions/swww.fish fish + vcompletion completions/_swww zsh +}