# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit git-r3 cmake desktop

DESCRIPTION="Wayland-native zooming daemon written in C"
HOMEPAGE="https://codeberg.org/Vaishnav-Sabari-Girish/miru"
EGIT_REPO_URI="https://codeberg.org/Vaishnav-Sabari-Girish/miru.git"

LICENSE="MIT"
SLOT="0"
KEYWORDS=""

RDEPEND="
    dev-libs/wayland
    x11-libs/cairo
    x11-libs/pango
"
DEPEND="
  ${RDEPEND}
  dev-util/wayland-scanner
"
BDEPEND="virtual/pkgconfig"

src_install() {
  cmake_src_install
}

pkg_postinst() {
    elog "In order to use this, you have to run 'miru-daemon' in startup"
    elog "and configuration example can be found in:"
    elog " https://codeberg.org/Vaishnav-Sabari-Girish/miru#configuration "
}