void-packages/srcpkgs/Waybar/template

44 lines
1.8 KiB
Bash

# Template file for 'Waybar'
pkgname=Waybar
version=0.9.17
revision=1
build_style=meson
configure_args="-Dgtk-layer-shell=enabled -Dlibudev=enabled -Dman-pages=enabled
-Dsystemd=disabled -Drfkill=enabled
-Dlibnl=$(vopt_if libnl enabled disabled)
-Dpulseaudio=$(vopt_if pulseaudio enabled disabled)
-Ddbusmenu-gtk=$(vopt_if dbusmenugtk enabled disabled)
-Dmpd=$(vopt_if mpd enabled disabled)
-Dsndio=$(vopt_if sndio enabled disabled)
-Dwireplumber=$(vopt_if pipewire enabled disabled)"
hostmakedepends="cmake pkg-config glib-devel wayland-devel scdoc
$(vopt_if dbusmenugtk gobject-introspection)"
makedepends="libevdev-devel libinput-devel wayland-devel gtkmm-devel spdlog eudev-libudev-devel
gtk-layer-shell-devel jsoncpp-devel libglib-devel libsigc++-devel fmt-devel chrono-date-devel
playerctl-devel
$(vopt_if pipewire 'wireplumber-devel pipewire-devel')
$(vopt_if libnl libnl3-devel)
$(vopt_if pulseaudio pulseaudio-devel)
$(vopt_if dbusmenugtk libdbusmenu-gtk3-devel)
$(vopt_if mpd libmpdclient-devel)
$(vopt_if sndio sndio-devel)"
short_desc="Polybar-like Wayland Bar for Sway and Wlroots based compositors"
maintainer="Érico Nogueira <ericonr@disroot.org>"
license="MIT"
homepage="https://github.com/Alexays/Waybar"
changelog="https://github.com/Alexays/Waybar/releases"
distfiles="https://github.com/Alexays/Waybar/archive/refs/tags/${version}.tar.gz"
checksum="da6f448be343a593ee092486fb4744502aa1e6ad85f4eccc3670d0b84a2a4266"
build_options="libnl pulseaudio dbusmenugtk mpd sndio pipewire"
build_options_default="libnl pulseaudio dbusmenugtk mpd sndio pipewire"
desc_option_libnl="Enable libnl support for network related features"
desc_option_dbusmenugtk="Enable support for tray"
desc_option_mpd="Enable support for MPD"
desc_option_pipewire="Enable support for pipewire related features"
post_install() {
vlicense LICENSE
}