# Description: A tiling window manager
# URL: https://i3wm.org/
# Maintainer: Juergen Daubert, jue at crux dot nu
# Depends on: pango xorg-xcb-util-cursor xorg-xcb-util-keysyms xorg-xcb-util-wm xorg-xcb-util-xrm libxkbcommon yajl libev startup-notification

name=i3
version=4.23
release=1
source=(http://i3wm.org/downloads/$name-$version.tar.xz)

build() {
	meson setup build $name-$version \
		--prefix=/usr \
		--sysconfdir=/usr/etc \
		--buildtype=plain \
		--wrap-mode nodownload \
		-D b_lto=true \
		-D b_pie=true

	meson compile -C build -j ${JOBS:-1}
	DESTDIR=$PKG meson install -C build

	install -d $PKG/usr/share/man/man1
	install -m 0644 $name-$version/man/*.1 $PKG/usr/share/man/man1/

	rm -r $PKG/usr/share/doc
}
