void-packages/srcpkgs/swww/template

34 lines
941 B
Bash

# Template file for 'swww'
pkgname=swww
version=0.9.5
revision=1
build_style=cargo
hostmakedepends="scdoc pkg-config"
makedepends="liblz4-devel"
short_desc="Solution to your Wayland Wallpaper Woes"
maintainer="Daniel Martinez <danielmartinez@cock.li>"
license="GPL-3.0-only"
homepage="https://github.com/LGFae/swww"
changelog="https://raw.githubusercontent.com/LGFae/swww/main/CHANGELOG.md"
distfiles="https://github.com/LGFae/swww/archive/refs/tags/v${version}.tar.gz"
checksum=567e2ac76203ad47df5aaafab7d9d0e4e283a74e34690930a4730ecf0a667428
post_build() {
./doc/gen.sh
}
# overriding 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
}