# Template file for 'rofi'
# XXX: ensure all compiled rofi plugins work with each version
# xlocate 'usr/lib/rofi/.*.so' to find them
pkgname=rofi
version=2.0.0
revision=1
build_style=meson
hostmakedepends="flex glib-devel pkg-config wayland-devel wayland-protocols"
makedepends="libXinerama-devel librsvg-devel libxkbcommon-devel
 pango-devel startup-notification-devel xcb-util-keysyms-devel
 xcb-util-wm-devel xcb-util-xrm-devel xcb-util-cursor-devel
 wayland-devel wayland-protocols"
checkdepends="check-devel"
short_desc="Window switcher, run dialog and dmenu replacement"
maintainer="classabbyamp <void@placeviolette.net>"
license="MIT"
homepage="https://github.com/davatorium/rofi"
changelog="https://github.com/davatorium/rofi/releases"
distfiles="https://github.com/davatorium/rofi/releases/download/${version}/rofi-${version}.tar.xz"
checksum=6a55ee27f189ef9a1435cea329b146805b5dc830d8abc7a08c50a971521a8d8d

if [ "$XBPS_CHECK_PKGS" ] && [ -z "$CROSS_BUILD" ]; then
	configure_args+=" -Dcheck=enabled"
else
	configure_args+=" -Dcheck=disabled"
fi

post_install() {
	vlicense COPYING
}

rofi-devel_package() {
	short_desc+=" - development files"
	depends="libglib-devel cairo-devel pango-devel"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
	}
}
