# sway - i3-compatible Wayland compositor
# Generated from manifest.tsv by gen-ports.py. Edit the manifest, not this file,
# unless the package needs something the template cannot express - in which case
# drop a `recipe.local` beside it and it will be preserved.
name=sway
version=1.11
release=1
desc="i3-compatible Wayland compositor"
url="https://swaywm.org/"
license="MIT"
depend="wlroots wayland libxkbcommon pango cairo json-c"
makedepend="meson ninja"
source="https://github.com/swaywm/sway/releases/download/1.11/sway-1.11.tar.gz"
sha256="SKIP"

build() {
	cd "sway-1.11"
	meson setup build \
		--prefix=/usr \
		--libdir=/usr/lib \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--buildtype=release \
		--wrap-mode=nodownload \
		-Db_lto=true
	ninja -C build -j"$JOBS"
}

package() {
	cd "sway-1.11"
	DESTDIR="$pkgdir" ninja -C build install
}
