58 lines
1.9 KiB
Bash
58 lines
1.9 KiB
Bash
# Template file for 'polybar'
|
|
pkgname=polybar
|
|
version=3.3.0
|
|
revision=1
|
|
wrksrc="$pkgname"
|
|
build_style=cmake
|
|
configure_args="
|
|
-DENABLE_ALSA=$(vopt_if alsa ON OFF)
|
|
-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_PULSEAUDIO=$(vopt_if pulseaudio ON OFF)
|
|
-DWITH_XRENDER=OFF -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 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")
|
|
$(vopt_if mpd "libmpdclient-devel")
|
|
$(vopt_if network "wireless_tools-devel")
|
|
$(vopt_if pulseaudio "pulseaudio-devel")"
|
|
short_desc="Fast and easy-to-use status bar"
|
|
maintainer="Michael Carlberg <c@rlberg.se>"
|
|
license="MIT"
|
|
homepage="https://github.com/jaagr/polybar"
|
|
distfiles="https://github.com/jaagr/polybar/releases/download/${version}/polybar-${version}.tar"
|
|
checksum=647dde8fbf6690138b354bf538d1d97ba8c1743ff22314af4ee085e06a1f506a
|
|
|
|
build_options="alsa curl i3 mpd network pulseaudio"
|
|
build_options_default="$build_options"
|
|
|
|
desc_option_alsa="Enable support for ALSA"
|
|
desc_option_curl="Enable support for cURL"
|
|
desc_option_i3="Enable support for i3"
|
|
desc_option_mpd="Enable support for MPD"
|
|
desc_option_network="Enable support for network"
|
|
desc_option_pulseaudio="Enable support for PulseAudio"
|
|
|
|
CXXFLAGS="-Wno-error=deprecated-declarations"
|
|
|
|
if [ "$build_option_network" ]; then
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl) CXXFLAGS+=" -D_LINUX_IF_ETHER_H" ;;
|
|
esac
|
|
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
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|