From 707bfa8e68a0c98aad828eb75c1052854b1db5bc Mon Sep 17 00:00:00 2001 From: Peter Bui Date: Wed, 2 Dec 2020 13:30:06 -0500 Subject: [PATCH] polybar: update to 3.5.0. - Add workaround for missing libatomic on armv6l. --- srcpkgs/polybar/template | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/srcpkgs/polybar/template b/srcpkgs/polybar/template index 12f488a9cad..77ef6866329 100644 --- a/srcpkgs/polybar/template +++ b/srcpkgs/polybar/template @@ -1,7 +1,7 @@ # Template file for 'polybar' pkgname=polybar -version=3.4.3 -revision=2 +version=3.5.0 +revision=1 wrksrc="$pkgname" build_style=cmake configure_args=" @@ -26,7 +26,7 @@ maintainer="Michael Carlberg " license="MIT" homepage="https://github.com/jaagr/polybar" distfiles="https://github.com/jaagr/polybar/releases/download/${version}/polybar-${version}.tar" -checksum=d4ed121c1d3960493f8268f966d65a94d94c4646a4abb131687e37b63616822f +checksum=e8c1798c195854852fc7c99703287294123381101b371f171d4aa540aeb17afd build_options="alsa curl i3 mpd network pulseaudio" build_options_default="$build_options" @@ -46,6 +46,11 @@ if [ "$build_option_network" ]; then esac fi +if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then + makedepends+=" libatomic-devel" + configure_args+=" -DCMAKE_CXX_STANDARD_LIBRARIES='-latomic'" +fi + post_extract() { # Fixes compilation with musl sed -i 's|strncpy(header->magic, g_i3_ipc_magic.c_str(),|memcpy(header->magic, g_i3_ipc_magic.c_str(),|g' lib/i3ipcpp/src/ipc-util.cpp