File lite-xl-plugin-manager.spec of Package lite-xl-plugin-manager
#
# spec file for package lite-xl-plugin-manager
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: lite-xl-plugin-manager
Version: 1.0.8
Release: 0
Summary: A plugin manager for lite-xl
License: MIT
URL: https://github.com/lite-xl/lite-xl-plugin-manager
Source: %{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: git-core
BuildRequires: meson
BuildRequires: mbedtls-2-devel
BuildRequires: pkgconfig(libgit2)
BuildRequires: pkgconfig(libzip)
BuildRequires: pkgconfig(lua) >= 5.4
BuildRequires: pkgconfig(zlib)
%description
A standalone binary that provides an easy way of installing, and uninstalling plugins from lite-xl, as well as different version of lite-xl.
Can be used by a package manager plugin that works from inside the editor and calls this binary.
Also contains a plugin_manager.lua plugin to integrate the binary with lite in the form of an easy-to-use GUI.
%prep
%autosetup
%build
%meson \
-Dstatic=true
%meson_build
%install
%ifarch i586
install -D -m 0755 "i586-suse-linux/lpm" "%{buildroot}/%{_bindir}/lpm"
%else
install -D -m 0755 "%{_arch}-suse-linux/lpm" "%{buildroot}/%{_bindir}/lpm"
%endif
%files
%{_bindir}/lpm
%license LICENSE
%doc README.md CHANGELOG.md
%changelog