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."
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"
PV = "0.10.0"
SRCREV = "cc084f5f86776b3b5b9708a99bed49b991eb48af"
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 \
2024-03-03 16:24:53 +01:00
gtk-layer-shell \
2021-06-02 16:13:46 +02:00
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[dbusmenu-gtk] = "-Ddbusmenu-gtk=enabled,-Ddbusmenu-gtk=disabled,libdbusmenu-gtk"
2023-04-14 09:18:31 +02:00
PACKAGECONFIG[evdev] = "-Dlibevdev=enabled,-Dlibevdev=disabled,libevdev"
2021-12-18 07:30:25 +01:00
PACKAGECONFIG[experimental] = "-Dexperimental=true,-Dexperimental=false"
2024-03-03 16:24:53 +01:00
PACKAGECONFIG[jack] = "-Djack=enabled,-Djack=disabled,jack"
2023-04-14 09:18:31 +02:00
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"
2024-03-03 16:24:53 +01:00
PACKAGECONFIG[pipewire] = "-Dpipewire=enabled,-Dpipewire=disabled,pipewire"
2023-04-14 09:18:31 +02:00
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', 'pipewire wireplumber', '', d)} \
2023-04-14 09:18:31 +02:00
evdev \
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"