void-packages/srcpkgs/Waybar/template
Nathan Owens 1ffd0ab8bf Waybar: revbump against fmt
[ci skip]
2019-11-12 12:58:06 +01:00

43 lines
1.5 KiB
Bash

# Template file for 'Waybar'
pkgname=Waybar
version=0.8.0
revision=2
build_style=meson
configure_args="-Dlibnl=$(vopt_if libnl enabled disabled)
-Dpulseaudio=$(vopt_if pulseaudio enabled disabled)
-Ddbusmenu-gtk=$(vopt_if dbusmenugtk enabled disabled)"
hostmakedepends="pkg-config glib-devel wayland-devel sway"
makedepends="libinput-devel wayland-devel wlroots-devel gtkmm-devel spdlog
jsoncpp-devel libglib-devel libsigc++-devel fmt-devel
$(vopt_if pulseaudio pulseaudio-devel) $(vopt_if libnl libnl3-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="DirectorX <void.directorx@protonmail.com>"
license="MIT"
homepage="https://github.com/Alexays/Waybar"
changelog="https://github.com/Alexays/Waybar/releases"
distfiles="https://github.com/Alexays/Waybar/archive/${version}.tar.gz"
checksum=2de2f0cec243da0d9ff2255ceb9dac9d95e8be06d6ea13926fae460d72e4b8aa
build_options="libnl pulseaudio dbusmenugtk mpd"
build_options_default="pulseaudio 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"
if [ -z "$CROSS_BUILD" ]; then
# Requires gobject introspection
build_options_default+=" dbusmenugtk"
fi
case "$XBPS_TARGET_MACHINE" in
*-musl) ;; # Has broken network headers on musl
*) build_options_default+=" libnl"
esac
post_install() {
vlicense LICENSE
}