diff --git a/srcpkgs/polybar/template b/srcpkgs/polybar/template index 3480815f57..259fd6da77 100644 --- a/srcpkgs/polybar/template +++ b/srcpkgs/polybar/template @@ -1,7 +1,7 @@ # Template file for 'polybar' pkgname=polybar version=3.2.1 -revision=1 +revision=2 _i3ipcpp_version=0.7.1 _xpp_version=1.4.0 build_style=cmake @@ -10,9 +10,12 @@ configure_args=" -DENABLE_CURL=$(vopt_if curl ON OFF) -DENABLE_I3=$(vopt_if i3 ON OFF) -DENABLE_MPD=$(vopt_if mpd ON OFF) - -DENABLE_NETWORK=$(vopt_if network ON OFF)" + -DENABLE_NETWORK=$(vopt_if network ON OFF) + -DWITH_XRENDER=ON -DWITH_XDAMAGE=ON -DWITH_XSYNC=ON + -DWITH_XCOMPOSITE=ON" hostmakedepends="pkg-config xcb-proto" -makedepends="cairo-devel xcb-util-image-devel xcb-util-wm-devel xcb-util-xrm-devel zlib-devel +makedepends="cairo-devel xcb-util-image-devel xcb-util-wm-devel xcb-util-xrm-devel + zlib-devel xcb-util-renderutil-devel xcb-util-cursor-devel libxcb-devel $(vopt_if alsa "alsa-lib-devel") $(vopt_if curl "libcurl-devel") $(vopt_if i3 "i3-devel jsoncpp-devel") @@ -48,10 +51,6 @@ if [ "$build_option_network" ]; then esac fi -if [ "$CROSS_BUILD" ]; then - configure_args+=" -DTHREADS_PTHREAD_ARG=OFF" -fi - post_extract() { if [ -d ../i3ipcpp-${_i3ipcpp_version} ]; then mv -f -T ../i3ipcpp-${_i3ipcpp_version} lib/i3ipcpp @@ -59,6 +58,9 @@ post_extract() { if [ -d ../xpp-${_xpp_version} ]; then mv -f -T ../xpp-${_xpp_version} lib/xpp fi + + # 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 } post_install() {