void-packages/srcpkgs/i3status-rust/template

30 lines
1.0 KiB
Bash

# Template file for 'i3status-rust'
pkgname=i3status-rust
version=0.33.1
revision=1
build_style=cargo
build_helper="qemu"
make_check_args="--bins"
hostmakedepends="pkg-config pandoc"
makedepends="dbus-devel pulseaudio-devel openssl-devel libsensors-devel"
short_desc="Replacement for i3status, written in Rust"
maintainer="Orphaned <orphan@voidlinux.org>"
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=3b460f6adebee4ca49890ec4ebc50d42fe4b544aac7ec12ba5e4de971a06859a
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 files/icons usr/share/i3status-rust/
vcopy files/themes usr/share/i3status-rust/
vman man/i3status-rs.1
vsconf examples/config.toml
}