polybar: enable all X extensions, fix musl build, remove unused
configure_args
This commit is contained in:
parent
2544d295f0
commit
6de5665eac
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'polybar'
|
# Template file for 'polybar'
|
||||||
pkgname=polybar
|
pkgname=polybar
|
||||||
version=3.2.1
|
version=3.2.1
|
||||||
revision=1
|
revision=2
|
||||||
_i3ipcpp_version=0.7.1
|
_i3ipcpp_version=0.7.1
|
||||||
_xpp_version=1.4.0
|
_xpp_version=1.4.0
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
|
@ -10,9 +10,12 @@ configure_args="
|
||||||
-DENABLE_CURL=$(vopt_if curl ON OFF)
|
-DENABLE_CURL=$(vopt_if curl ON OFF)
|
||||||
-DENABLE_I3=$(vopt_if i3 ON OFF)
|
-DENABLE_I3=$(vopt_if i3 ON OFF)
|
||||||
-DENABLE_MPD=$(vopt_if mpd 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"
|
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 alsa "alsa-lib-devel")
|
||||||
$(vopt_if curl "libcurl-devel")
|
$(vopt_if curl "libcurl-devel")
|
||||||
$(vopt_if i3 "i3-devel jsoncpp-devel")
|
$(vopt_if i3 "i3-devel jsoncpp-devel")
|
||||||
|
@ -48,10 +51,6 @@ if [ "$build_option_network" ]; then
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$CROSS_BUILD" ]; then
|
|
||||||
configure_args+=" -DTHREADS_PTHREAD_ARG=OFF"
|
|
||||||
fi
|
|
||||||
|
|
||||||
post_extract() {
|
post_extract() {
|
||||||
if [ -d ../i3ipcpp-${_i3ipcpp_version} ]; then
|
if [ -d ../i3ipcpp-${_i3ipcpp_version} ]; then
|
||||||
mv -f -T ../i3ipcpp-${_i3ipcpp_version} lib/i3ipcpp
|
mv -f -T ../i3ipcpp-${_i3ipcpp_version} lib/i3ipcpp
|
||||||
|
@ -59,6 +58,9 @@ post_extract() {
|
||||||
if [ -d ../xpp-${_xpp_version} ]; then
|
if [ -d ../xpp-${_xpp_version} ]; then
|
||||||
mv -f -T ../xpp-${_xpp_version} lib/xpp
|
mv -f -T ../xpp-${_xpp_version} lib/xpp
|
||||||
fi
|
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() {
|
post_install() {
|
||||||
|
|
Loading…
Reference in New Issue