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

EAPI=8

inherit cmake desktop

DESCRIPTION="Wayland-native zooming daemon written in C"
HOMEPAGE="https://codeberg.org/Vaishnav-Sabari-Girish/miru"
SRC_URI="https://codeberg.org/Vaishnav-Sabari-Girish/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"

S="${WORKDIR}/miru"

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

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 "
}