Name: lite-xl
Version: 2.1.3
Release: alt1

Summary: A lightweight text editor written in Lua, adapted from lite
License: MIT and OFL
Group: Editors

Url: https://github.com/lite-xl/lite-xl/archive/refs/tags/v2.1.3.tar.gz
Source: %name-%version.tar.gz
AutoReq:  nolua

Requires:    glibc lua5.4 libpcre2 libSDL2 libfreetype
BuildRequires(pre): rpm-macros-meson

BuildRequires: gcc  meson libpcre2-devel liblua5.4-devel 

%description
A lightweight, simple, fast, feature-filled, and extremely
extensible text editor written in C, and Lua, adapted from lite.
Lite XL is derived from lite. It is a lightweight text editor
written mostly in Lua — it aims to provide something practical,
pretty, small and fast easy to modify and extend, or to use
without doing either.
The aim of Lite XL compared to lite is to be more user friendly, 
improve the quality of font rendering, and reduce CPU usage.

%prep
%setup 

%build
%meson -Dbuildtype=release -Duse_system_lua=true
%meson_build

%install
%meson_install
%find_lang %name

%files -f %name.lang

%{_docdir}/%{name}/licenses.md	
%doc README.md changelog.md
	
%{_bindir}/%{name}
	
%{_datadir}/%{name}
	
%{_datadir}/icons/hicolor
	
%{_datadir}/applications/org.lite_xl.lite_xl.desktop
	
%{_datadir}/metainfo/org.lite_xl.lite_xl.appdata.xml
%changelog
# * Thu Apr 11 2024 Example Packager <example@altlinux.org> 1.0-alt1
# - initial build
