image: archlinux
packages:
  - cairo
  - gdk-pixbuf2
  - json-c
  - lcms2
  - libdisplay-info
  - libegl
  - libinput
  - libxcb
  - libxkbcommon
  - meson
  - pango
  - pcre2
  - scdoc
  - wayland
  - wayland-protocols
  - xcb-util-image
  - xcb-util-wm
  - xorg-xwayland
  - seatd
  - hwdata
sources:
  - https://github.com/swaywm/sway
  - https://gitlab.freedesktop.org/wlroots/wlroots.git
tasks:
  - wlroots: |
      cd wlroots
      meson setup --prefix=/usr build -Dexamples=false
      ninja -C build
      sudo ninja -C build install
  - setup: |
      cd sway
      meson setup build --fatal-meson-warnings -Dauto_features=enabled -Dsd-bus-provider=libsystemd
  - build: |
      cd sway
      ninja -C build
