52 lines
2.1 KiB
Bash
52 lines
2.1 KiB
Bash
# Template file for 'Waybar'
|
|
pkgname=Waybar
|
|
version=0.9.8
|
|
revision=1
|
|
_date_version=3.0.0
|
|
create_wrksrc=yes
|
|
build_wrksrc=${pkgname}-${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 <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/v${_date_version}.tar.gz
|
|
https://github.com/mesonbuild/hinnant-date/releases/download/${_date_version}-1/hinnant-date.zip"
|
|
checksum="3f067c484aaee3e7d8ded382e72c280a92913b0c4e8a20d0ac9afdf8baf19405
|
|
87bba2eaf0ebc7ec539e5e62fc317cb80671a337c1fb1b84cb9e4d42c6dbebe3
|
|
6ccaf70732d8bdbd1b6d5fdf3e1b935c23bf269bda12fdfd0e561276f63432fe"
|
|
|
|
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 date-${_date_version} ${build_wrksrc}/subprojects/
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|