meta-wayland/recipes-gtk/waybar/waybar_git.bb

79 lines
2.7 KiB
BlitzBasic
Raw Normal View History

2021-06-02 16:13:46 +02:00
SUMMARY = "Wayland bar for Wlroots based compositors"
DESCRIPTION = "Highly customizable Wayland bar for Sway and Wlroots based compositors."
AUTHOR = ""
HOMEPAGE = "https://github.com/Alexays/Waybar"
BUGTRACKER = "https://github.com/Alexays/Waybar/issues"
SECTION = "graphics"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=98f7e9dc79966298d76caf1b0a6d35c1"
REQUIRED_DISTRO_FEATURES = "wayland gobject-introspection-data"
2023-04-14 09:18:31 +02:00
SRC_URI = " \
git://github.com/Alexays/Waybar.git;protocol=https;branch=master \
file://waybar.service \
"
S = "${WORKDIR}/git"
2023-07-10 09:49:16 +02:00
PV = "0.9.19"
SRCREV = "d8a808f76c51ded496b8be244513dad9345adb68"
2023-04-14 09:18:31 +02:00
2021-06-02 16:13:46 +02:00
DEPENDS += " \
2023-04-14 09:18:31 +02:00
date \
2021-09-06 08:00:30 +02:00
fmt \
2021-06-02 16:13:46 +02:00
glib-2.0-native \
gtkmm3 \
jsoncpp \
libsigc++-3 \
2021-09-06 08:00:30 +02:00
libxkbcommon \
2021-06-02 16:13:46 +02:00
gtk+3 \
gobject-introspection \
2021-06-27 04:24:55 +02:00
spdlog \
2021-06-02 16:13:46 +02:00
wayland \
wayland-native \
wayland-protocols \
"
2023-04-14 09:18:31 +02:00
inherit meson pkgconfig features_check
PACKAGECONFIG[libcxx] = "-Dlibcxx=true,-Dlibcxx=false,libcxx clang-tidy"
PACKAGECONFIG[evdev] = "-Dlibevdev=enabled,-Dlibevdev=disabled,libevdev"
2021-12-18 07:30:25 +01:00
PACKAGECONFIG[experimental] = "-Dexperimental=true,-Dexperimental=false"
2023-04-14 09:18:31 +02:00
PACKAGECONFIG[gtk-layer-shell] = "-Dgtk-layer-shell=enabled,-Dgtk-layer-shell=disabled,gtk-layer-shell"
PACKAGECONFIG[jack] = "-Djack=enabled,-Djack=disabled,pipewire"
PACKAGECONFIG[libinput] = "-Dlibinput=enabled,-Dlibinput=disabled,libinput"
PACKAGECONFIG[logind] = "-Dlogind=enabled,-Dlogind=disabled,systemd"
2023-06-02 18:28:16 +02:00
PACKAGECONFIG[man_pages] = "-Dman-pages=enabled,-Dman-pages=disabled,scdoc-native"
2023-04-14 09:18:31 +02:00
PACKAGECONFIG[mpd] = "-Dmpd=enabled,-Dmpd=disabled,libmpdclient"
PACKAGECONFIG[mpris] = "-Dmpris=enabled,-Dmpris=disabled,playerctl"
PACKAGECONFIG[network] = "-Dlibnl=enabled,-Dlibnl=disabled,libnl"
PACKAGECONFIG[pulseaudio] = "-Dpulseaudio=enabled,-Dpulseaudio=disabled,pulseaudio"
PACKAGECONFIG[rfkill] = "-Drfkill=enabled,-Drfkill=disabled"
PACKAGECONFIG[systemd] = "-Dsystemd=enabled,-Dsystemd=disabled,systemd"
PACKAGECONFIG[tests] = "-Dtests=enabled,-Dtests=disabled,catch2"
PACKAGECONFIG[udev] = "-Dlibudev=enabled,-Dlibudev=disabled"
PACKAGECONFIG[upower_glib] = "-Dupower_glib=enabled,-Dupower_glib=disabled,upower"
PACKAGECONFIG[wireplumber] = "-Dwireplumber=enabled,-Dwireplumber=disabled,wireplumber"
2021-06-02 16:13:46 +02:00
PACKAGECONFIG ?= " \
${@bb.utils.filter('DISTRO_FEATURES', 'pulseaudio', d)} \
2023-04-14 09:18:31 +02:00
${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd logind udev', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'pipewire', 'wireplumber', '', d)} \
evdev \
2021-06-02 16:13:46 +02:00
gtk-layer-shell \
2023-04-14 09:18:31 +02:00
libinput \
mpris \
network \
rfkill \
upower_glib \
2021-06-02 16:13:46 +02:00
"
2023-04-14 09:18:31 +02:00
do_install:append() {
install -m 0644 ${WORKDIR}/waybar.service ${D}${systemd_user_unitdir}
}
2021-06-02 16:13:46 +02:00
2023-04-14 09:18:31 +02:00
FILES:${PN} += "${systemd_user_unitdir}"
2021-06-02 16:13:46 +02:00
2023-04-14 09:18:31 +02:00
RRECOMMENDS:${PN} += "font-awesome-otf"