Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] i3status-rust: update to 0.32.2.
@ 2023-09-16  5:28 pablomancera
  2023-09-22 22:02 ` Duncaen
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: pablomancera @ 2023-09-16  5:28 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 628 bytes --]

There is a new pull request by pablomancera against master on the void-packages repository

https://github.com/pablomancera/void-packages i3status-rst
https://github.com/void-linux/void-packages/pull/46079

i3status-rust: update to 0.32.2.
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, x86_64
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64 (crossbuild)
  - armv6l (crossbuild)


A patch file from https://github.com/void-linux/void-packages/pull/46079.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-i3status-rst-46079.patch --]
[-- Type: text/x-diff, Size: 2309 bytes --]

From 8b4de5c7c36c9046bc2c6a5205c5f9e7e501273f Mon Sep 17 00:00:00 2001
From: Pablo Alejandro Mancera <pablo.mancera@hotmail.com>
Date: Sat, 16 Sep 2023 00:23:27 -0500
Subject: [PATCH] i3status-rust: update to 0.32.2.

---
 srcpkgs/i3status-rust/template | 34 ++++++++++++++++++++++++++--------
 1 file changed, 26 insertions(+), 8 deletions(-)

diff --git a/srcpkgs/i3status-rust/template b/srcpkgs/i3status-rust/template
index 07731701b738b..e043a14850636 100644
--- a/srcpkgs/i3status-rust/template
+++ b/srcpkgs/i3status-rust/template
@@ -1,23 +1,41 @@
 # Template file for 'i3status-rust'
 pkgname=i3status-rust
-version=0.22.0
-revision=3
+version=0.32.2
+revision=1
 build_style=cargo
+configure_args="$(vopt_if notmuch '--features notmuch')"
 make_check_args="--bins"
-hostmakedepends="pkg-config"
-makedepends="dbus-devel pulseaudio-devel openssl-devel libsensors-devel"
+hostmakedepends="pkg-config $(vopt_if docs pandoc)"
+makedepends="pulseaudio-devel openssl-devel libsensors-devel
+	$(vopt_if notmuch libnotmuch-devel)"
 short_desc="Replacement for i3status, written in Rust"
 maintainer="Jan Christian Grünhage <jan.christian@gruenhage.xyz>"
 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=8957424ecc0aad778784c3c1ac1051b8ceee22903ed1d292deed732a486130de
+
+build_options="notmuch docs"
+build_options_default="docs"
+desc_option_notmuch="Required for optional notmuch block"
+desc_option_docs="Generate manpage"
+
+if [ "$CROSS_BUILD" ] && [ "$build_option_docs" ]; then
+	hostmakedepends+=" pulseaudio-devel openssl-devel libsensors-devel"
+fi
+
+post_build() {
+	if [ "$build_option_docs" ]; then
+		env -i bash -c "source /etc/profile && cargo xtask generate-manpage"
+	fi
+}
 
 post_install() {
 	vmkdir usr/share/i3status-rust
-	vcopy ${wrksrc}/files/icons usr/share/i3status-rust/
-	vcopy ${wrksrc}/files/themes usr/share/i3status-rust/
+	vcopy ${wrksrc}/files/* usr/share/i3status-rust/
 
-	vman man/i3status-rs.1
+	if [ "$build_option_docs" ]; then
+		vman ${wrksrc}/man/i3status-rs.1
+	fi
 }

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-11-14 19:12 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-16  5:28 [PR PATCH] i3status-rust: update to 0.32.2 pablomancera
2023-09-22 22:02 ` Duncaen
2023-09-22 22:05 ` [PR REVIEW] " classabbyamp
2023-09-22 22:50 ` pablomancera
2023-09-22 23:01 ` Duncaen
2023-09-22 23:04 ` Duncaen
2023-09-22 23:04 ` Duncaen
2023-09-22 23:28 ` pablomancera
2023-09-22 23:36 ` [PR PATCH] [Updated] " pablomancera
2023-11-14 19:12 ` [PR PATCH] [Closed]: " pablomancera

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).