From 6719b7e5c5c99c5751c0219a7d101999156f59d2 Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Fri, 7 Jun 2024 14:24:24 -0400 Subject: [PATCH] ironbar: update to 0.15.1. Closes: #50130. --- srcpkgs/ironbar/template | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/srcpkgs/ironbar/template b/srcpkgs/ironbar/template index 9a33f021a43..9788353c283 100644 --- a/srcpkgs/ironbar/template +++ b/srcpkgs/ironbar/template @@ -1,23 +1,35 @@ # Template file for 'ironbar' pkgname=ironbar -version=0.14.1 +version=0.15.1 revision=1 build_style=cargo hostmakedepends="pkg-config" -makedepends="gtk+3-devel gtk-layer-shell-devel" +makedepends="gtk+3-devel gtk-layer-shell-devel pulseaudio-devel" short_desc="Customisable gtk-layer-shell wlroots/sway bar" maintainer="caughtquick " license="MIT" homepage="https://github.com/JakeStanger/ironbar" changelog="https://github.com/JakeStanger/ironbar/releases/" distfiles="https://github.com/JakeStanger/ironbar/archive/refs/tags/v${version}.tar.gz" -checksum=3259397f6204fb2d8fd92451240a3a7650fe7fa58f067b1fa4e917c87f0effac +checksum=a322ad99c0456705ae16bce7fd066bbffc1a3fc28211c6189a9d7df82a9cce98 + +if [ "${XBPS_WORDSIZE}" == "${XBPS_TARGET_WORDSIZE}" ]; then + makedepends+=" LuaJIT-devel" +else + # Disable cairo feature that requires LuaJIT; otherwise, + # keep this feature list in sync with Cargo.toml + configure_args+=" --no-default-features + --features=cli,clipboard,clock,config+all,focused + --features=http,ipc,launcher,music+all,notifications + --features=sys_info,tray,upower,volume,workspaces+all + " +fi post_install() { vlicense LICENSE - vsconf examples/config.corn - vsconf examples/config.json - vsconf examples/config.yaml - vsconf examples/config.toml - vsconf examples/style.css + + local f + for f in examples/*; do + [ -f "${f}" ] && vsconf "${f}" + done }