From f5807271061ddd2a1bfcb01ed34e16e937707a5b Mon Sep 17 00:00:00 2001 From: Kartik Singh Date: Fri, 31 Mar 2023 14:19:15 +0530 Subject: [PATCH 1/2] New package: rsgain-3.2.1 --- srcpkgs/rsgain/template | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 srcpkgs/rsgain/template diff --git a/srcpkgs/rsgain/template b/srcpkgs/rsgain/template new file mode 100644 index 0000000000000..d05d859f8558f --- /dev/null +++ b/srcpkgs/rsgain/template @@ -0,0 +1,17 @@ +# Template file for 'rsgain' +pkgname=rsgain +version=3.2.1 +revision=1 +build_style=cmake +hostmakedepends="pkg-config" +makedepends="libebur128-devel taglib-devel ffmpeg-devel inih-devel fmt-devel" +short_desc="Simple but powerful ReplayGain 2.0 tagging utility" +maintainer="Kartik Singh " +license="BSD-2-Clause" +homepage="https://github.com/complexlogic/rsgain" +distfiles="https://github.com/complexlogic/rsgain/archive/v${version}.tar.gz" +checksum=e5ddedd2dc5cff97c2efde64480d7bd3c7c5061a496d3fe284dcbc0af5417513 + +post_install() { + vlicense LICENSE +} From 690e863b8f49cd4c85be13fe46becb4719e8a8ab Mon Sep 17 00:00:00 2001 From: Kartik Singh Date: Sat, 8 Jul 2023 10:32:15 +0530 Subject: [PATCH 2/2] i3status-rust: update to 0.31.8. --- srcpkgs/i3status-rust/template | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/srcpkgs/i3status-rust/template b/srcpkgs/i3status-rust/template index 788270ca956f6..4338ae2029db9 100644 --- a/srcpkgs/i3status-rust/template +++ b/srcpkgs/i3status-rust/template @@ -1,10 +1,10 @@ # Template file for 'i3status-rust' pkgname=i3status-rust -version=0.22.0 -revision=2 +version=0.31.8 +revision=1 build_style=cargo make_check_args="--bins" -hostmakedepends="pkg-config" +hostmakedepends="pkg-config $(vopt_if docs 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 +12,27 @@ 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=31d391a08d45ab877a36479a6f453768303a836efae6ffcf555013b2f12fce2f + +build_options="docs" +desc_option_docs="Enable manpage generation" + +if [ -z "$CROSS_BUILD" ]; then + build_options_default="docs" +fi + +post_build() { + if [ "$build_option_docs" ]; then + 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/ - vman man/i3status-rs.1 + if [ "$build_option_docs" ]; then + vman man/i3status-rs.1 + fi }