# Template file for 'Waybar' pkgname=Waybar version=0.9.16 revision=1 _date_version=3.0.1 _mesonbuild_date_ver=3.0.0-1 build_wrksrc=Waybar-${version} 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)" hostmakedepends="cmake pkg-config glib-devel wayland-devel scdoc $(vopt_if dbusmenugtk gobject-introspection)" makedepends="libinput-devel wayland-devel gtkmm-devel spdlog eudev-libudev-devel gtk-layer-shell-devel jsoncpp-devel libglib-devel libsigc++-devel fmt-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 " license="MIT" homepage="https://github.com/Alexays/Waybar" changelog="https://github.com/Alexays/Waybar/releases" # date library URLs and checksums taken from subprojects/date.wrap distfiles="https://github.com/Alexays/Waybar/archive/refs/tags/${version}.tar.gz https://github.com/HowardHinnant/date/archive/refs/tags/v${_date_version}.tar.gz https://github.com/mesonbuild/hinnant-date/archive/refs/tags/${_mesonbuild_date_ver}.tar.gz" checksum="37ebd7b10e32e802afe9236ea9374fabb77b1abb2c203ca6173b27dc03128096 7a390f200f0ccd207e8cff6757e04817c1a0aec3e327b006b7eb451c57ee3538 f2aa492b59893f69367228bf802cbb0a07c4d52fac2185dfd8ebb5d16295d893" build_options="libnl pulseaudio dbusmenugtk mpd sndio" build_options_default="libnl pulseaudio dbusmenugtk mpd sndio" desc_option_libnl="Enable libnl support for network related features" desc_option_dbusmenugtk="Enable support for tray" desc_option_mpd="Enable support for MPD" post_extract() { mv hinnant-date-${_mesonbuild_date_ver}/meson_options.txt date-${_date_version}/ mv hinnant-date-${_mesonbuild_date_ver}/meson.build date-${_date_version}/ mv date-${_date_version} Waybar-${version}/subprojects/ } post_install() { vlicense LICENSE }