From e798372007e50eb4da82f76b7b3682594982b737 Mon Sep 17 00:00:00 2001 From: Riley Barello-Myers Date: Fri, 22 Dec 2023 11:22:22 -0700 Subject: [PATCH] i3status-rust: update to 0.32.3 Adds in a hostdependancy for pandoc, as the process for generating the man page has changed. --- srcpkgs/i3status-rust/template | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/srcpkgs/i3status-rust/template b/srcpkgs/i3status-rust/template index 5e51b37ac809d8..7db6e3a5171e28 100644 --- a/srcpkgs/i3status-rust/template +++ b/srcpkgs/i3status-rust/template @@ -1,10 +1,11 @@ # Template file for 'i3status-rust' pkgname=i3status-rust -version=0.22.0 -revision=4 +version=0.32.3 +revision=1 build_style=cargo +build_helper="qemu" make_check_args="--bins" -hostmakedepends="pkg-config" +hostmakedepends="pkg-config pandoc" makedepends="dbus-devel pulseaudio-devel openssl-devel libsensors-devel" short_desc="Replacement for i3status, written in Rust" maintainer="Jan Christian Grünhage " @@ -12,12 +13,16 @@ license="GPL-3.0-only" homepage="https://github.com/greshake/i3status-rust" changelog="https://raw.githubusercontent.com/greshake/i3status-rust/master/NEWS.md" distfiles="https://github.com/greshake/i3status-rust/archive/refs/tags/v${version}.tar.gz" -checksum=cd28a90ccb2f9faaaef1e528619f1018981609d77f409abe4877350d810d3324 +checksum=6a2c37d0e424d666f297d7ec36279b54a522acf5bf77af883be1991513e4da61 + +post_build() { + cargo auditable build --release --target "${RUST_TARGET}" --package xtask + CARGO_MANIFEST_DIR=./xtask vtargetrun target/"${RUST_TARGET}"/release/xtask generate-manpage +} post_install() { vmkdir usr/share/i3status-rust - vcopy ${wrksrc}/files/icons usr/share/i3status-rust/ - vcopy ${wrksrc}/files/themes usr/share/i3status-rust/ - + vcopy files/icons usr/share/i3status-rust/ + vcopy files/themes usr/share/i3status-rust/ vman man/i3status-rs.1 }