diff --git a/srcpkgs/gesso/template b/srcpkgs/gesso/template new file mode 100644 index 00000000000000..496095b2b6bfe8 --- /dev/null +++ b/srcpkgs/gesso/template @@ -0,0 +1,34 @@ +# Template file for 'gesso' +pkgname=gesso +version=0.1.0 +revision=1 +build_style=cargo +hostmakedepends="pkg-config" +makedepends="wayland-devel wayland-protocols" +short_desc="Deterministic Wayland wallpaper daemon and CLI" +maintainer="Dustin Pilgrim " +license="MIT" +homepage="https://github.com/saltnpepper97/gesso" +distfiles="https://github.com/saltnpepper97/gesso/archive/refs/tags/v${version}.tar.gz" +checksum=9eb20009dc24cfeac2b608bacca880f46a6a0804ce1e7e765266960b188abfbe + +# Upstream has no test suite yet, and running `cargo test` in the Void build sandbox +# is not useful for this package: the project is a Wayland wallpaper daemon/CLI and +# any future integration tests would require a live Wayland compositor/session which +# is not available during package builds. +make_check=no + +do_install() { + vlicense LICENSE + + local tdir="${CARGO_TARGET_DIR:-$wrksrc/target}" + local bindir="$tdir/${XBPS_CROSS_TRIPLET:+${XBPS_CROSS_TRIPLET}/}release" + if [ ! -d "$bindir" ]; then + bindir="$tdir/release" + fi + + vbin "$bindir/gesso" + vbin "$bindir/gessod" + + vman gesso.1 +}