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