Package kanshi: Specfile

%define _unpackaged_files_terminate_build 1

Name: kanshi
Version: 1.4.0
Release: alt1

Summary: Dynamic display configuration
License: MIT
Group: Graphical desktop/Other

Url: https://wayland.emersion.fr/kanshi
VCS: https://git.sr.ht/~emersion/kanshi

Source: %name-%version.tar
Patch0: %name-%version-alt.patch

BuildRequires: meson ninja-build
BuildRequires: libwayland-client-devel
BuildRequires: scdoc

%description
kanshi allows you to define output profiles that are automatically
enabled and disabled on hotplug. For instance, this can be used to
turn a laptop's internal screen off when docked.

This is a Wayland equivalent for tools like autorandr. kanshi can be
used on Wayland compositors supporting the wlr-output-management
protocol.

%prep
%setup
%patch0 -p1

%build

%meson
%meson_build

%install
%meson_install

%check
%meson_test

%files
%doc LICENSE README.md
%_bindir/kanshi
%_man1dir/kanshi.1.xz
%_man5dir/kanshi.5.xz

%changelog
* Mon Nov 27 2023 Egor Ignatov <egori@altlinux.org> 1.4.0-alt1
- First build for ALT