void-packages/srcpkgs/Waybar/template
Érico Rolim 0e0ff7c5eb Waybar: update to 0.9.2, claim maintainer
Added dbusmenugtk option as default for all situations. libnl now works
for musl.

[ci skip]
2020-05-18 00:59:53 -07:00

46 lines
1.9 KiB
Bash

# Template file for 'Waybar'
pkgname=Waybar
version=0.9.2
revision=1
build_style=meson
configure_args="-Dgtk-layer-shell=enabled -Dlibudev=enabled -Dman-pages=enabled
-Dsystemd=disabled
-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)"
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)"
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"
# date library URLs and checksums taken from subprojects/date.wrap
distfiles="https://github.com/Alexays/Waybar/archive/${version}.tar.gz
https://github.com/HowardHinnant/date/archive/v2.4.1.tar.gz
https://github.com/mesonbuild/hinnant-date/releases/download/2.4.1-1/hinnant-date.zip"
checksum="9740662de19dd6126c23efb69c9dc7f9d918443543af12aee770de39d415bdf8
98907d243397483bd7ad889bf6c66746db0d7d2a39cc9aacc041834c40b65b98
2061673a6f8e6d63c3a40df4da58fa2b3de2835fd9b3e74649e8279599f3a8f6"
build_options="libnl pulseaudio dbusmenugtk mpd"
build_options_default="libnl pulseaudio dbusmenugtk mpd"
desc_option_libnl="Enable libnl support for network related features"
desc_option_dbusmenugtk="Enable support for tray"
desc_option_mpd="Enable support for MPD"
pre_configure() {
cp -rv ../date-2.4.1 subprojects/
}
post_install() {
vlicense LICENSE
}